1、PASSWORD()

2、ENCODE(,)   DECODE(,)

 

3、MD5()

4、SHA5()


5、AES_ENCRYPT AES_DECRYPT

加密 select   aes_encrypt(name, 'password ');
解密 select   aes_decrypt(aes_encrypt(name, 'password '), 'password ');

可用hex或base64转码(base64在mysql5.6及以上支持)

select   hex(aes_encrypt('5656', 'zh'));

select   aes_decrypt(unhex(hex(aes_encrypt('5656', 'zh'))), 'zh');

select   to_base64(aes_encrypt('5656', 'zh'));

select   aes_decrypt(from_base64(to_base64(aes_encrypt('5656', 'zh'))), 'zh');

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-04-21
  • 2021-07-02
  • 2021-11-20
猜你喜欢
  • 2021-08-10
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-11-18
  • 2021-07-14
相关资源
相似解决方案