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!