MySQL Hashing Function Implementation

前端 未结 7 1666
[愿得一人]
[愿得一人] 2020-12-05 03:31

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

7条回答
  •  半阙折子戏
    2020-12-05 03:59

    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.

提交回复
热议问题