EldoS | Feel safer!

Software components for data protection, secure storage and transfer

No Secret Key

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#26689
Posted: 10/02/2013 15:21:41
by Steven Fletcher (Basic support level)
Joined: 10/01/2013
Posts: 2

I don't have a "Secret Key" I only have a "Public Key" and a PassPhrase (and/or KeyPassphrase?).

I can decrypt my PGP file using PGP Desktop, but not with SB

Of course, I am getting this error when doing "DecryptAndVerify()":

"No appropriate OpenPGP secret key for decryption found"

I've seen this error a lot on the forum, but nobody else is saying they don't have a "Secret Key". So I don't know what I'm doing wrong. It seems so simple:

Code
    Sub Main()
        SBUtils.Unit.SetLicenseKey("abcdefg.............")

        Dim KeyRing As New TElPGPKeyring
        KeyRing.Load("c:\lawl.asc", "c:\lawl.asc", 0)

        Dim PGPReader As New TElPGPReader
        PGPReader.DecryptingKeys = KeyRing
        PGPReader.VerifyingKeys = KeyRing
        PGPReader.KeyPassphrase = "mykeyphrase"

        Using inF As New System.IO.FileStream("C:\lawl.txt.pgp", FileMode.Open)
            PGPReader.DecryptAndVerify(inF, 0) 'Error Here
        End Using

    End Sub
#26690
Posted: 10/02/2013 15:32:24
by Ken Ivanov (EldoS Corp.)

Hello Steven,

Thank you for contacting us.

You won't be able to decrypt data without having an appropriate secret key (in neither 'honest' nor some 'dishonest' way). If PGP Desktop is able to, it does have the secret key somewhere.

Ken
#26708
Posted: 10/03/2013 12:29:28
by Steven Fletcher (Basic support level)
Joined: 10/01/2013
Posts: 2

Thank you, Ken.

Being new to PGP, I didn't know any better. But the person managing our PGP-Desktop application assured me there was no Secret Key.

Of course, I had to come see myself after your response, and had to school him on how computers work, lol.

Thanks for the quick reply, we found our generated Secret Key inside PGP-Desktop, and now things are working correctly.

Reply

Statistics

Topic viewed 403 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!