Tuesday, October 24, 2006 6:47 PMHi All,
I'm looking for an API to decrypt PGP encrypted files.
I were using command line PGP program to do it. Sometimes it fails, so I decided to look for some other solutions.
Another question would be if I could use MS CryptoAPI to decrypt PGP encrypted files?
Any help appreciated.
Thank you in advance.
Tuesday, October 24, 2006 7:23 PM
You need some version of PGP, either the free or commercial version you are using. There is no API to my knowledge. Search online for PGP implementations and pick the one that is most convenient. As long as you have your key ring and your private key and the public key used for the message encyption you'll be fine.
Unfortunately MS CryptoAPI will not work with PGP.
Wednesday, October 25, 2006 12:40 AMHi Alex,
I found a DLL called NSDPGP.DLL. A free program, tested it and worked very well.
Thank you very much.
Wednesday, October 25, 2006 3:38 AMI use this product http://www.eldos.com/sbb/ SecureBlackbox, If you decide to use the Component, I can post some code too. Hope this helps.
Tuesday, January 29, 2008 7:12 PM
I’m using SecureBlackbox(3rd party) PGP component into BTS 2006 R2. Now am getting “Cannot modify Key” error.
FYI: I’m not modifying any key value.
Let me get help...
Monday, February 11, 2008 5:09 PM
Vasim wrote: I use this product http://www.eldos.com/sbb/ SecureBlackbox, If you decide to use the Component, I can post some code too. Hope this helps.
I would appreciate if you would post some code. I have been looking at Eldos as well. I have been having troubles getting even the most basic functions to work. Example:
oKeyRing = CREATEOBJECT("pgpbbox.ElPGPKeyringX")
The message displayed by the system is:
OLE IDispatch exception code 0 from pgpbbox.ElPGPKeyringX: Failed to open file.
The equivalent from VB works great. So - the key is there and is accessable to applications.
I also have included the private key as parameter 2, rather than a blank. Same error.
There seems to be a lack of selection for good activex components that can do PGP. The one that I thought would do great was from Xceed - but they only supported RSA w/o the PGP wrapper.
Thanks in advance for your help.
Monday, March 24, 2008 5:46 AM
Sorry for the delay, here is the function I wrote (see below) that I use with Eldos PGP.
I do not get your error, I noticed you are using public.pkr, hmmm, I always export one key for use, the public.pkr might contain multiple PGP keys, try to export and use just one, hope this helps.Code Snippet
lparameterstcInFile, tcOutFile, tcPGPKeyFile, tlUseNewFeatures, tlArmor
localllOk as Boolean
local loPGPKeys as 'pgpbbox.ElPGPKeyringX'
loPGPKeys = createobject('pgpbbox.ElPGPKeyringX')
local loPGP as 'pgpbbox.ElPGPWriterX'
loPGP = createobject('pgpbbox.ElPGPWriterX')
loPGP.EncryptingKeys = loPGPKeys
loPGP.UseNewFeatures = tlUseNewFeatures
loPGP.UseOldPackets = .F.
loPGP.Compress = .T.
#DEFINE etPublicKey 0
#DEFINE etPassphrase 1
#DEFINE etBoth 2
loPGP.Filename = justfname(tcInFile)
store null to
Wednesday, April 16, 2008 2:05 PM
I need some help to use "DecryptPassword" functionality .
I only have my privte key say "abc" and PGP file .
i m using VS2005 and C# and its for win application.
Wednesday, March 31, 2010 3:10 PMWhere did you find the NSDPGP.DLL program?
Thursday, April 01, 2010 3:55 AMAnswerer
Check Below Link
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India