By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,829 Members | 2,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,829 IT Pros & Developers. It's quick & easy.

i can't figure out how to use MD5()

P: n/a
I do get that MD5() scrambles a password, but how do you then
unscrable it? I want to get $password from the user, scrable it, then
append it to every link.
Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On 17 Aug 2003 14:18:09 -0700, lk******@geocities.com (lawrence) wrote:
I do get that MD5() scrambles a password, but how do you then
unscrable it?


You don't, it's impossible.

You store the MD5 of the password. Then when a password is entered in the
future, you MD5 that and compare it with the previously stored MD5. If they
match, the passwords match. Part of the idea of this is that the original
password isn't stored, so even if the table was read by crackers the passwords
wouldn't be revealed.

--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Jul 16 '05 #2

P: n/a
jkd
The MD5 function can be use to encrypt a password, but there is no PHP
function to decrypt it. I suppose you could brute force an MD5 hash but then
why would you want to append that to a link?
"lawrence" <lk******@geocities.com> wrote in message
news:da*************************@posting.google.co m...
I do get that MD5() scrambles a password, but how do you then
unscrable it? I want to get $password from the user, scrable it, then
append it to every link.


Jul 16 '05 #3

P: n/a
On 17 Aug 2003 14:18:09 -0700, lk******@geocities.com (lawrence) scrawled:
I do get that MD5() scrambles a password, but how do you then
unscrable it? I want to get $password from the user, scrable it, then
append it to every link.


MD5 isn't an encryption algorithm - it is a checksum algorithm - and
so is designed to be one way (it's actually a many - one algorithm) so
two passwords may check sum to the same value (although) this is unlikely
for such short strings.

Baggy
Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.