Basic questions about Encryption.
Posted: Wed May 13, 2009 4:28 am
Hi everyone. I am new to encryption.
I am developing a web client that communicates with LDAP using PHP. Right now I have an OpenLDAP server running and a client program that is connected to it for browsing call "LDAPEditor". This LDAP editor along with 3 other LDAP editors I use have the ability to change the "userPassword" of the LDAP entry. I can choose between 4 or 5 different types of encryption.
I have chosen MD5. I know this isn't strong encryption but I want to use this as an example.
Anyway, when I create a new password in LDAPEditor using MD5 the password is stored.
But when I go to PHP and use the function MD5("password"), the two encrypted passwords look nothing alike.
What am I doing wrong? The same happens for SHA and Crypt.
Also can someone please explain what the difference is in using hash("md5", "password") and md5("password") is?
thanks
I am developing a web client that communicates with LDAP using PHP. Right now I have an OpenLDAP server running and a client program that is connected to it for browsing call "LDAPEditor". This LDAP editor along with 3 other LDAP editors I use have the ability to change the "userPassword" of the LDAP entry. I can choose between 4 or 5 different types of encryption.
I have chosen MD5. I know this isn't strong encryption but I want to use this as an example.
Anyway, when I create a new password in LDAPEditor using MD5 the password is stored.
But when I go to PHP and use the function MD5("password"), the two encrypted passwords look nothing alike.
What am I doing wrong? The same happens for SHA and Crypt.
Also can someone please explain what the difference is in using hash("md5", "password") and md5("password") is?
thanks