OpenPGP Library for .NET

Why should OpenPGP cryptography be complex when it can be as easy as:

// C#
PGPLib pgp = new PGPLib();
// should output be ASCII or binary
bool asciiArmor = false;
// encrypt
pgp.EncryptFile(@"C:\INPUT.txt",
                @"C:\recipient_public_key.asc",
                @"C:\OUTPUT.pgp",
                asciiArmor);
'-- VB.NET
Dim pgp As New PGPLib()
' should output be ASCII or binary
Dim asciiArmor As Boolean = False
' encrypt
pgp.EncryptFile("C:\INPUT.txt", _
                "C:\recipient_public_key.asc", _
                "C:\OUTPUT.pgp", _
                asciiArmor)

OpenPGP Library for .NET includes methods for OpenPGP encryption, decryption, clear signing, one pass sign and encrypt, decrypt and verify, key generation, supports both key store and keys located in files. Entirely written in managed code, there are no external third party dependencies. Check our Online Examples section for more details.

Current version: 1.8.2.5
Build date: 16 November 2017

The Library decrypts and encrypts files that can be opened with the following software:

.net OpenPGP Library Box Shot

  • Symantec Encryption Desktop
  • Symantec PGP ® Command Line
  • McAfee E-Business Server
  • GnuPG (gpg), Gpg4Win, WinPT
  • Authora EDGE
  • Articsoft FileAssurity

Supported Platforms

  • .NET Framework 2.0 – 4.6
  • Windows 10 Universal Platform (UWP)
  • .NET Core
  • Silverlight 3 – 5
  • Windows Phone 8
  • .NET Compact Framework 2.0, 3.5
  • Windows Store / WinRT
  • Xamarin.Android
  • Xamarin.iOS

Royalty free distribution
There are no hidden costs. Distribute the library with no fees to pay.

Trial Version Limitations

  • 30 days evaluation copy

Online Examples

Examples C# and VB.NET examples can be found here.

Additional information

Help Online API reference

Subscribe to the Newsletter Newsletter