我正在使用AES算法加密文件并将其存储在AWS上。
然后,我将使用微服务从AWS读取这个加密文件,解密它,并对该文件进行一些进一步的处理。
如何在应用程序和微服务之间共享AES密钥和IV?
这就是我到目前为止所拥有的加密方法。我在这个函数的外部使用了AES.Create(),并将算法与我想要加密的流一起传递给它。
public async Task<Stream> Encrypt(Stream stream, SymmetricAlgorithm aes)
{
// TODO: How to share algorithm key between this
我重新熟悉了OpenPGP,并注意到GnuPG允许我在密钥中存储“首选密钥服务器”URL:
reuben@localhost:~$ gpg2 --edit-key 'Reuben NP Garrett <my-special-email@example.com>'
gpg> help
..
keyserver set the preferred keyserver URL for the selected user IDs
这似乎影响了GPG的“刷新-键”操作,因为当我尝试将这个值设置为http://pgp.mit.edu/ (我以前发布密钥的地方)时,G
我已经成功地在mongoDB中加密了通信,但是当我尝试启用数据加密时,我会收到错误。我使用的是3.2.4版本的mongoDB企业版。我在控制台中得到以下消息:
ERROR: child process failed, exited with error number 14
但是,当我查看日志时,我看到了如下详细的错误:
Unable to retrieve key .system, error: there are existing data files, but no valid keystore could be located.
Fatal Assertion 28561
下面是我的配置