How do I decrypt a password from the database?
How do I decrypt a password from database
Collapse
X
-
-
You can't decrypt. You have to store a copy of the crypted word in the database when it is created. Then compare the two encrypted versions. -
This is not necessarily true. The Original Poster did not give us enough information to give an answer to this question.Originally posted by code greenYou can't decrypt. You have to store a copy of the crypted word in the database when it is created. Then compare the two encrypted versions.Comment
-
Often, passwords are HASHED before being put into a database, as opposed to ENCRYPTED. The difference is that a hashing function has a one to many relationship between the original text and the result text. This makes it impossible to directly gather the original text when given the hash. MD5 and SHA1 are two such hashing functions.Originally posted by nithyasunilhpw to decrypt a password from database
On the other hand, if you know the passwords were encrypted with a method such as DES or RSA, you will need to know some specific information about the way it was encrypted, namely a private key.Comment
-
Comment