Re:How To Safely Store A Password
by run4yourlives on Monday February 01, 2010 @03:08PM
(#1093315)
Essentially, because it is reversible.
In other words, the information needed to extract the true raw-text password is actually included in the encrypted string.
With a hash, only a representation of the raw-text is being stored. Even if you knew exactly what was done to create that representation, you're still a long way off from understanding the raw-text.
If you treat both the key and the salt as being "known to the developer only" and either of these becomes compromised, you still don't have they raw-text of a hash, but you've got everything you need for the encrypted.
In other words, the information needed to extract the true raw-text password is actually included in the encrypted string.
With a hash, only a representation of the raw-text is being stored. Even if you knew exactly what was done to create that representation, you're still a long way off from understanding the raw-text.
If you treat both the key and the salt as being "known to the developer only" and either of these becomes compromised, you still don't have they raw-text of a hash, but you've got everything you need for the encrypted.