Re: Re: crypt()
| From: | Ian Firla | Date: | Thu, 26 Aug 2004 13:24:58 +0000 |
| Subject: | Re: Re: crypt() | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194777@lists.php.net to get a copy of this message | ||
On Thu, 2004-08-26 at 15:01, Aaron Todd wrote:
> Thanks for the tip, it worked great, however everything I have been reading
> says that md5 is only one way. The way I have setup my app is the database
> contains the encrypted version of what the user entered as their password.
> Then on my login page there is an if statement that encrypts what the user
> is entering as their password and then checking that against what is in the
> database for them. This is working great!...Thanks again.
>
> My registration page is where the password gets encrypted and then sent to
> the database. After the user registers and I accept them as a user they
> recieve an email containing their username and password. But the password
> is encrypted. Is there a way to decrypt the encrypted password in the
> database? Or am I going about this wrong?
Send the password before it gets encrypted and put into the database.
You can't decrypt an md5 encrypted password.
Ian