Hello !
I am using the following code to encrypt my password field . (DES 2 char salt is being used).
$salt=substr($pass,0,4);
$seem=crypt($pass,$salt);
Here encryted values will remain same for the same values of passwords.
In the following code i didnot mention the salt , so here crypt function use by default DES encryption with 2 char salt
$seem=crypt($pass);
But here encryted value will be generated randomly even for the same passwords.
In the above two examples , DES with 2 char salt is used but i am getting the different results in both cases . The result should be the same because in both cases DES 2 char salt encryption is being used.
Any suggestion
Regards