[英]How to read key from aws instance and add into my mysql query?
lets take my query is 让我来查询
Insert into table1 values (AES_ENCRYPT('mypassword', some_secure_key));
I am storing some_secure_key in key management service in aws . 我将aws_secure_key存储在aws的密钥管理服务中。 I want to fetch and use this key in my query .
我想获取并在查询中使用此密钥。
I am running this query from local system. 我正在从本地系统运行此查询。
system detail mysql_version :- 5.7.23 OS:- linux 系统详细信息mysql_version:-5.7.23 OS:-Linux
You need to use AES_DECRYPT
for decryption: 您需要使用
AES_DECRYPT
进行解密:
SELECT description, AES_DECRYPT(description,some_secure_key)
FROM table1 ;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.