Re: MySQL, MD5 and SHA1
| From: | Per Jessen | Date: | Tue, 21 Apr 2009 12:42:40 +0000 |
| Subject: | Re: MySQL, MD5 and SHA1 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291729@lists.php.net to get a copy of this message | ||
Grega Leskovsek wrote:
> provided I want to store hash of a password in MySQL ... Using MySQL,
> the whole check can be achieved with a SQL query, since the MD5
> function is provided as part of the database query language ...
> Can I use also SHA1 or must I use MD5?
>
You could have just checked the mysql manual? But yes, there is also a
SHA1 function.
/Per
--
Per Jessen, Zürich (19.2°C)