Page 1 of 1

How to display in a decrypted format? - Pleas help

Posted: Wed Aug 26, 2009 2:41 am
by azri_bech
I encrypt a password and put it in a table. How would i retrieve the password in a decrypted format?

please help
Thank you

Re: How to display in a decrypted format? - Pleas help

Posted: Wed Aug 26, 2009 2:48 am
by papa
The idea is that you don't decrypt the password, instead you match to encrypted string against each other and see if they match.

Re: How to display in a decrypted format? - Pleas help

Posted: Wed Aug 26, 2009 2:53 am
by azri_bech
how?

Re: How to display in a decrypted format? - Pleas help

Posted: Wed Aug 26, 2009 4:23 am
by Mark Baker
azri_bech wrote:how?
By encrypting the value that the user has entered in the password field in the same way that you encrypted the original password stored in the table

Re: How to display in a decrypted format? - Pleas help

Posted: Wed Aug 26, 2009 6:38 am
by jackpf
Well, no, if you encrypted the password, you can just decrypt it using the decryption algorithm of whatever algorithm you used to encrypt it.

However, if you hashed it, then you can't retrieve the original value (without hacking it, or rainbow tables).