OK, I understand Crypt() uses a 1 way Standard DES encryptioni algorithm...
My question is this:
I am writing a code for an administrative user/password login on a website, and was wondering how you all do it?
I am planning to write it so when the user creates their user name and password, they must also setup a PIN. (Kind of like an ATM)
What the thinking here is this:
If the user loses their password, they can input their username and PIN to change their password, because the pasword is going to be encrypted using crypt() and using the PIN as the "Salt".
The PIN will also be stored encrypted in the same manner except that it will salt iitself.
I figured this sounded secure enough (obviously, SSL would be better, but my webhost doesn't offer it, and I don't feel like spending several thousand dollars to put an SSL webserver in my own house...)
Any input as to how you all do it?
Thanks in advance,
Jacob