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
If you are interested in the algorithm of this function, download the source code and see the file sql/password.c, or check this implementation.