使用 bouncy castle API 在 C# 中创建 PGP SDA
我目前正在使用 C# 中的 Bouncy Castle API(版本 1.6.1)编写一个应用程序来 PGP 加密文件。我已经成功地使用公共/秘密密钥对和密码短语来加密和解密文件,但我工作的要求之一也是创建将文件加密到 SDA(自解密档案)的能力与官方 PGP 软件非常相似。
任何人都知道如何实现这一点?
干杯
I'm currently writing an application to PGP encrypt files using the Bouncy Castle API (release 1.6.1) in C#. I've managed to get everything working in terms of encrypting and decrypting files using both public/secret key pairs and pass phrases, but one of the requirements of my work is also to create the ability to encrypt files into SDAs (Self Decrypting Archives) much like the official PGP software does.
Anyone have any idea how this can be achieved?
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编写一个轻量级版本,除了验证密码、解密、显示一个漂亮的进度条并允许用户指定文件的目标位置之外,什么也不做。
当这个轻量级版本启动时,它会在其内部资源集合中查找目标文件,并根据上面的顺序进行解密,然后将其写入目标目录。
您编写了一个应用程序版本,它将原始轻量级应用程序与目标文件打包在一起。你是怎么做到的?此处:如何更改可执行文件图标c# 代码? (不是我的应用程序图标)。
为了获得奖励积分,请将 SDE 标记为在下次重新启动时删除:http://abhi.dcmembers.com/blog/2009/03/24/mark-file-for-deletion-on-reboot/。
Write a lightweight version that does nothing but verify the password, decipher, display a nice progress bar, and allow the user to specify the target location for the file.
When this light weight version launches, it looks to its internal resources collection for the target file, and deciphers according it to the sequence above, and then writes it to the target directory.
You write a version of your app which packages the virgin lightweight app with the target file. How do you do that? Here: How to change executable icon from c# code? (not my app icon).
For bonus points, mark the SDE for deletion on next reboot: http://abhi.dcmembers.com/blog/2009/03/24/mark-file-for-deletion-on-reboot/.