INSERT INTO users (username, password) VALUES ('john', ENCODE('guessme', 'salt'));
SELECT username, DECODE(password,'salt') AS password FROM users WHERE username = 'john';
INSERT INTO users (username, password) VALUES ('steven', aes_encrypt('password', 'salt'));
SELECT username, aes_decrypt(password,'salt') AS password FROM users WHERE username = 'steven';
SET block_encryption_mode = 'aes-256-cbc';
block_encryption_mode=aes-256-cbc
SELECT RANDOM_BYTES(16),hex(RANDOM_BYTES(16)),unhex('F1C50531999CD95D7CF56E281A4C23F4');
AES_ENCRYPT('text' , 'password', UNHEX('F1C50531999CD95D7CF56E281A4C23F4'))
https://www.cnblogs.com/mc-r/p/15890408.html
https://stackoverflow.com/questions/15564591
https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#function_aes-encrypt