Using a public key by mistake when decrypting

A common scenario that we have evidenced in our technical support practice for DidiSoft OpenPGP Library for .NET is that some customers by mistake try to decrypt .pgp files with an OpenPGP public key. Although the exception was of class DidiSoft.Pgp.Exceptions.WrongPrivateKeyException,  the exception text so far wasn’t very helpful and it stated: “Decryption of data encrypted […]

Continue reading


premature end of stream in PartialInputStream

The latest release of DidiSoft OpenPGP Library for .NET (1.7.9.14) and OpenPGP Library for Java (2.6.6.3) ship with bug fix for the error “premature end of stream in PartialInputStream“. The error “premature end of stream in PartialInputStream” may be observed when trying to decrypt .pgp data with wrong internal length indicators , usually when the encrypted content […]

Continue reading


Using OpenPGP for .NET from Windows PowerShell

As of version 1.7.15 we provide a PowerShell ready module installed and imported in Windows PowerShell with the library. A complete tutorial chapter is available here.   (Obsolete: see www.didisoft.com/net-openpgp/examples/powershell/) This article contains basic information regarding using DidiSoft OpenPGP Library for .NET from Windows PowerShell. 1. Referencing the library In order to access the classes exposed by […]

Continue reading


WPF and Silverlight support

Windows Presentation Framework (WPF) DidiSoft OpenPGP Library for .NET works without problems in WPF (Windows Presentation Framework) applications. The Library DLL files that you should reference are located under the /Bin folder located in the library installation folder. Silverlight For Silverlight applications you have to reference the DLL files located under the /Bin/Silverlight folder located in the library […]

Continue reading


64 bit support

DidiSoft OpenPGP Library for .NET is written completely in managed code and it runs with no modification on 32 bit and 64 bit platforms including Itanium. The library Intermediate language (IL) code is compiled to native code by the Microsoft .NET Framework JIT (Just in time) compiler at runtime. It will run as 64-bit on […]

Continue reading


Unknown object in stream 21

We have received recently an email from one of our customers that have encountered an exception with message “Unknown object in stream 21“. The scenario when this exception occurred was: she tried to encrypt with an ASCII armored public key received from a partner with different operating system. The reason for the above exception was […]

Continue reading