MD5 encrypted password in database reset

Source: Internet
Author: User

If you accidentally change the password of the project administrator account and forget, there is a password in the database is MD5 encrypted, how to do?

1. Oracle database, can be used Dbms_obfuscation_toolkit. MD5 (Input + = Utl_raw.cast_to_raw (' preset password ')) to obtain a password that is MD5 encrypted:

SQL is as follows:

-----The MD5 value obtained here is uppercase, if the database is stored in lowercase, you need to use the lower function to convert it.

Update Web_org_oper O
Set o.c_passwd = Lower (Dbms_obfuscation_toolkit. MD5 (input = Utl_raw.cast_to_raw (' 11 ')))
where c_oper_id = ' 02000001 ';

2. Mysql,sql server database, have built-in MD5 () function, (SQL Server, should be hashbyte (' encryption method ', ' value to be encrypted '),

For information on how to use functions, the stored procedure implementation is supplemented later

MD5 encrypted password in database reset

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.