You are not logged in.
Pages: 1
Hello everyone.
When I am adding a password in OpenLDAP, it is with {CRYPT} infront. How can I decrypt this password with PHP.
For example, {CRYPT}Kms8wKoBq5AWA is the hash of one password for example. The actual password is 'secret'. I tryed every php algorithm that I know.
Regards.
Last edited by Gruntz (2009-04-15 13:23:21)
Offline
Generally passwords stored in a encrypted format CANNOT be decrypted, this is by design. The way you authenticate is take the password, encrypt it using the same method, and compare. If they match you know the correct original password was supplied.
JABBER: krayon -A-T- chat.qdnx.org
E-MAIL: archlinuxforums -A-T- quadronyx.org
WEB: http://www.qdnx.org/krayon/
~o~
Offline
Yes, I am trying to encript the same password in order to get the same hach, but it is never the same I have tryed all the algorithm that I got from hash_algos() function, but it is never the same
Offline
The first two bytes/characters in your DES hash is called the 'salt'. 'Km' is the salt that was used to create that hash Kms8wKoBq5AWA. You must use the same salt in your call to the PHP crypt function.
Offline
Pages: 1