Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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 ;)

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.

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/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top