OpenPGP Library for .NET

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


PGPLib pgp = new PGPLib();
// should output be ASCII or binary
bool asciiArmor = false;
// encrypt
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", _

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.

Download trial version or use NuGetPM> Install-Package DidiSoft.Pgp.Trial

Current version:
Build date: 14 January 2022

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 6
  • .NET 5
  • .NET Framework 3.5 – 4.8
  • .NET Standard 2.1
  • Windows 10 Universal Platform (UWP)
  • Silverlight 3 – 5
  • Windows Store/WinRT
  • Xamarin.Android
  • Xamarin.Mac
  • 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

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

OpenPGP for yubikeyAdditional information

Subscribe to the OpenPGP Library for .NET Newsletter