加密和解密Azure Redis缓存中的值

问题描述

我想在存储时进行加密,并在读取Redis缓存中的值时进行解密。什么是最好的安全方式做到这一点。由于符合GDPR,我无法直接存储用户别名。

以下是我将其转换为字节并将字节数组存储在redis中的方法。

https://docs.microsoft.com/es-es/dotnet/api/system.security.cryptography.rijndaelmanaged.generatekey?view=netcore-3.1

但是我无法从Redis解密字节数组。

解决方法

更新

enter image description here

enter image description here

重要

您可以download my sample code

enter image description here

<amp-script>

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...