[英]Encrypt multiple elements using AWS KMS
I would like to encrypt credit cards using AWS KMS. 我想使用AWS KMS加密信用卡。
I can encrypt the credit card number and then the exp month name ... but I can't find a way to do that in only one call (right now I have to make a call for every one of them) 我可以先加密信用卡号,然后再加密exp月份的名称...但是我找不到一个方法可以仅通过一个电话来完成此操作(现在我必须为每个电话打一个电话)
Any idea or advice? 有什么想法或建议吗?
What I ended up doing is to create a hash, then serialize it to transaform it into a string. 我最终要做的是创建一个哈希,然后对其进行序列化以将其转换为字符串。 While this string can be encrypted and deserialized on decryption. 虽然此字符串可以加密,也可以在解密时反序列化。 Works well for simple hashes 适用于简单的哈希
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.