Originally posted by PHPGuru2
Yeah, you are right, there is no decrypting, so it cannot be used for encypting credit card number and so on...
Is not so true:
if you have only to compare the values, you can use it. You can't only show it to the user.
Example:
I can memorize password with md5() in db.
- INSERT ... pwd=md5("$passwd") ...
At login i FIRST apply md5() to given password, THEN compare it with password in db
- if(md5("$userpaswd")==$row["pwd"])...
But i cannot show this
- echo "Your old password:".$row["pwd"];
[edit]
... and surely you cannot get back the credit number ...
[/edit]