MySQL's password () function and MD5 function

Source: Internet
Author: User

Password is used to modify the MySQL user password, if it is applied with the Web program recommend using the MD5 () function,

Password function Legacy 16-bit, new version 41-bit, can be viewed with select length (Password (' 123456 ')).

Password function encryption is not reversible, if compared with the database in the encrypted content can be used password (pwd) = = field content mode;

MD5 function encryption After 32 bits, this encryption algorithm is not reversible, in fact, the MD5 algorithm is an information digest algorithm, if the compression is also lossy compression, theoretically even if there is a reverse algorithm can not restore information as it is. He is often used to verify the integrity of downloaded data. If a lot of software provide MD5 code, for users to download complete verification integrity.

From:http://hi.baidu.com/phay/blog/item/b77c3f29a66e2afe99250a9b.html

MySQL's password () function and MD5 function

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.