MySQL Hashing Function Implementation

Posted by Jonas Stevens on Stack Overflow See other posts from Stack Overflow or by Jonas Stevens
Published on 2008-11-03T22:43:59Z Indexed on 2010/04/17 15:33 UTC
Read the original article Hit count: 265

Filed under:
|
|
|

I know that php has md5(), sha1(), and the hash() functions, but I want to create a hash using the MySQL PASSWORD() function. So far, the only way I can think of is to just query the server, but I want a function (preferably in php or Perl) that will do the same thing without querying MySQL at all.

For example:

MySQL hash -> 464bb2cb3cf18b66

MySQL5 hash -> *01D01F5CA7CA8BA771E03F4AC55EC73C11EFA229

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql