azure - 如何解密 Azure 存储中的加密二进制文件?
问题描述
我正在尝试使用 PowerShell 解密加密的 blob 文件?找不到任何方法来做到这一点?如果有人有解决方案,请告诉我。
解决方案
如果您真的想这样做,您可能需要使用 C# 代码并使用 Powershell 脚本执行代码。
// In this case, we will not pass a key and only pass the resolver because
// this policy will only be used for downloading / decrypting.
BlobEncryptionPolicy policy = new BlobEncryptionPolicy(null, cloudResolver);
BlobRequestOptions options = new BlobRequestOptions() { EncryptionPolicy = policy };
using (var np = File.Open(@"C:\data\MyFileDecrypted.txt", FileMode.Create))
blob.DownloadToStream(np, null, options, null);
推荐阅读
- javascript - 使用 Ajax 问题调用 SVG Sprites
- spring-data - Spring Boot Cassandra 连接到节点时出错(endPoint=localhost:1234,hostId=null,hashCode=37hfeouh3),
- python - 时间数据与格式“%c”不匹配
- pandas - 按位置重命名列熊猫
- arrays - C:反转数组仅在显式循环时打印
- typescript - 导入时打字稿类型保护丢失类型定义
- javascript - 当使用 key 属性时,react useState 中的状态会更新,但需要 useEffect 或类似方法才能更新
- node.js - 每次我将某些内容保存到数据库时都会收到未处理的拒绝错误
- javascript - 如何避免配置随着模块联合而变得越来越复杂?
- firebase - 使用 Flutter Firebase 电子邮件和密码身份验证登录时出现问题