Associate
- Joined
- 11 Oct 2008
- Posts
- 268
Hi guys, this may be a really stupid question, but im pretty stupid so please bare with me
im currently using this bit of code to encrypt and decrypt my passwords.
$cleanpw = crypt(md5($pw),md5($user));
i want to crypt my passwords without the $user variable. I tried a few different ways of changing the code with no luck
when i used:
$cleanpw = crypt(md5($pw));
it put an encrypted password into my database but when i tried to log in and decrypt it, it doesnt compare properly and just spits out the wrong password error.

im currently using this bit of code to encrypt and decrypt my passwords.
$cleanpw = crypt(md5($pw),md5($user));
i want to crypt my passwords without the $user variable. I tried a few different ways of changing the code with no luck
when i used:
$cleanpw = crypt(md5($pw));
it put an encrypted password into my database but when i tried to log in and decrypt it, it doesnt compare properly and just spits out the wrong password error.