EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Decrypt Unsigned File

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#4447
Posted: 12/05/2007 09:25:26
by John Glisson (Basic support level)
Joined: 07/06/2007
Posts: 5

I need to know how to decrypt an unsigned file. We have a company sending us files that are encrypted using our public key, but not signed using a private key.

I am able to decrypt it by hand using PGP desktop utility.

All of the method overloads in C# for the keyring require a signature key to be specified. Any help would be appreciated.

Thanks!
#4448
Posted: 12/05/2007 09:30:53
by John Glisson (Basic support level)
Joined: 07/06/2007
Posts: 5

Answering my own question. If I construct the keys object with a null for the signature key it appears to work.

Code
if(signatureKey.Length > 0)
    keyring.Load(encryptionKey, signatureKey, true);
else
    keyring.Load(encryptionKey, null, true);

Reply

Statistics

Topic viewed 1407 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!