有没有办法直接使用 GNU Privacy Guard 功能?是的,我知道从 gpg.exe 实用程序重定向输入/输出流,但也许我们可以直接使用分发中的一些非托管库?
4 回答
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 上使用它——如果你追求这个,请告诉我你的进展情况;)
如果您正在寻找与 GPG 加密流的原生 csharp 交互,还可以在http://www.bouncycastle.org/csharp/上找到 BouncyCastle csharp 库的 BouncyCastle Privacy Guard (BCPG) 组件。
我已将项目移至 CodePlex。这个库现在是 Biko 库的一部分,并且在 Alpha 版本中可用。 http://biko.codeplex.com/