INSERTINTOtable1 (user, pw) VALUE (user1, MD5 (password1) INSERTINTOtable1 (user, pw) VALUE (user1, PASSWORD (password1) INSERTINTOtable1 (user, pw) VALUE (user1, SHA1 (password1) can use the following statement for password verification: SELE
Insert into table1 (user, pw) VALUE ('user1', MD5 ('password1 ') insert into table1 (user, pw) VALUE ('user1 ', PASSWORD ('password1 ') insert into table1 (user, pw) VALUE ('user1', SHA1 ('password1') can be verified using the following statement: SELE
Insert into table1 (user, pw) VALUE ('user1', MD5 ('password1 '))
Insert into table1 (user, pw) VALUE ('user1', PASSWORD ('password1 '))
Insert into table1 (user, pw) VALUE ('user1', SHA1 ('password1 '))
You can use the following statement to verify the password:
SELECT * FROM table1 WHERE pw = MD5 ('password1 ')
SELECT * FROM test. userpass WHERE pass = SHA1 ('ddddd ')
SELECT * FROM test. userpass WHERE pass = password ('ddddd ')
Insert into test. userpass (name, pass, enpass) VALUE ('user3', 'ddddd', AES_ENCRYPT ('pass', 'key '));
The preceding insert statement has three fields: "User Name", "password", and "encrypted password ". The AES_ENCRYPT () function requires a "key" to assist in encryption. Similarly, it is also required for decryption.
SELECT aes_decrypt (enpass, 'key') FROM test. userpass