MYSQL PASSWORD()

https://www.pythian.com/blog/hashing-algorithm-in-mysql-password-2/

SELECT
    PASSWORD ("this_is_a_random_string"),
    SHA1(
        UNHEX(
            SHA1("this_is_a_random_string")
        )
    )

 

posted @ 2016-12-27 12:04  papering  阅读(158)  评论(0编辑  收藏  举报