MySQL中的加密和解密 [英] Encryption And Decryption In MySQL

查看:312
本文介绍了MySQL中的加密和解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助:当我使用AES_ENCRIPT(''string'',''key'')AES_DECRYPT(''string'',''key'')密码的加密和解密方法时,加密过程成功完成,但是在解密的情况下,我得到了此输出system.byte [].

Help:When i am using AES_ENCRIPT(''string'',''key'') And AES_DECRYPT(''string'',''key'') Methods for encryption and decryption of Password, encryption process complete successfully but in the case of decryption i get this output system.byte[].

Select user_login.Login_Id,user_login.Employee_Id,user_login.Login_Name, AES_DECRYPT(user_login.Login_Password,'ppksd123oo') As Password,
user_login.Login_Type,user_login.Status from user_login where Login_Name = 'Sani_Rajpoot'
AND Login_Password = AES_ENCRYPT('welcome','ppksd123oo');



在此先感谢.



Thanks In Advance.

推荐答案

使用以下功能请阅读:
Read this on using these functions : http://www.johnboy.com/blog/how-to-use-mysqls-aes_encrypt-and-aes_decrypt-to-store-passwords-in-a-database[^]


这篇关于MySQL中的加密和解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆