在 .NET 中使用 GNU 隐私保护
有没有办法直接使用 GNU Privacy Guard 功能?是的,我知道如何从 gpg.exe 实用程序重定向输入/输出流,但也许我们可以直接使用分发中的一些非托管库?
Is there some way to use GNU Privacy Guard functionality directly? Yes, I know about redirecting input/output streams from gpg.exe utility, but maybe we can use some unmanaged libraries from distribution directly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我想我可以回答我自己的问题。我被指向 Starksoft .NET GnuPG 组件< /a> - 一个免费的库,它本身与 GPG 进行交互。看起来它工作得很好,即使该项目似乎有一段时间没有维护了。
UPD:该组件现在似乎可以作为 NuGet 包在 https://www.nuget 上使用。 org/packages/starksoft.aspen
I think I can answer my own question. I was pointed to Starksoft .NET GnuPG Component - a free library that takes interaction with GPG on itself. Looks like it works fine, even if the project seems to be not maintained for a while.
UPD: The component seems to be available now as a NuGet package at https://www.nuget.org/packages/starksoft.aspen
我对此也很感兴趣。
您知道 这个包装类将流重定向到 gpg.exe,但库的方式似乎没有太多。
有 SharpPrivacy 但它已经死了一段时间了,我查看了源代码代码(来自 codeproject)和表示逻辑与实际代码混合在一起 - 它需要大量的 tlc。它的 sourceforge 页面似乎也已经死了。
还有 Bouncy Castle 也可以完成这项工作,不过我还没有研究过,我不过,我会建议你不要使用 SharpPrivacy - 如果你追求这个,请告诉我你的进展如何;)
I'm also interested in this.
You prb know about this wrapper class that wraps the redirecting streams to gpg.exe, but there doesn't seem to be much in the way of libraries.
There is SharpPrivacy but that has been dead a while, I looked at the source code (from codeproject) and the presentation logic is mixed in with the actual code - it needs a lot of tlc. The sourceforge page for it seems to be dead too.
Theres also Bouncy Castle which may do the job, I've not looked into it yet though, I would suggest it over SharpPrivacy though - let me know how you get on if you pursue this ;)
还有 BouncyCastle csharp 库的 BouncyCastle Privacy Guard (BCPG) 组件,可从 http://www.bouncycastle 获取.org/csharp/ ,如果您正在寻找与 GPG 加密流的本机 csharp 交互。
There are also the BouncyCastle Privacy Guard (BCPG) components of the BouncyCastle csharp library, available at http://www.bouncycastle.org/csharp/ , if you're looking for native csharp interaction with GPG-encrypted streams.
我已将项目移至 CodePlex。该库现在是 Biko 库的一部分,并在 Alpha 版本中提供。 http://biko.codeplex.com/
I have moved the projects to CodePlex. This library is now part of the Biko library and is available in a Alpha release. http://biko.codeplex.com/