proper syntax for decryption using session key ?

vedaal at vedaal at
Wed Sep 28 23:09:49 CEST 2005

have been trying to decrypt a message using the session key,
but can't get it to work, (am using gnupg 1.4.2 at the command 

started by encrypting a file to a test key 
(and also to my default key), 
saving the file as c:\r\s.txt
and decrypting with the option of --show-session-key

here is part of the gpg output after decryption:

gpg: public key is F0E74948
gpg: using subkey F0E74948 instead of primary key 7B534E2D
gpg: public key encrypted data: good DEK
gpg: public key is 04ADEE20
gpg: using subkey 04ADEE20 instead of primary key 6A589A97
gpg: encrypted with 4096-bit RSA key, ID 04ADEE20, created 
      "vedaal nistar <vedaal at>"
gpg: encrypted with 1024-bit ELG-E key, ID F0E74948, created 
      "boo <boo at key.test>"
gpg: 3DES encrypted data
gpg: decryption okay
gpg: session key: 

here is what i tried to do to decrypt with the session key:

first, this one:

C:\>gpg --override-session-key 
string1568A79A26ABCB75C294AA07AB73C53A7D168F2B898F93BE c:\r\s.txt

and got this gpg output error message:

gpg: public key decryption failed: bad key
gpg: decryption failed: secret key not available

then i tried each of the following, but got the same error message 
as above

gpg --override-session-key 
string2:1568A79A26ABCB75C294AA07AB73C53A7D168F2B898F93BE c:\r\s.txt

gpg --override-session-key 
string`1568A79A26ABCB75C294AA07AB73C53A7D168F2B898F93BE' c:\r\s.txt

gpg --override-session-key 

then i tried it with a space between the word string and the 
session key string, like this: (there was no line wrapping in the 
command line)

gpg --override-session-key string 
`2:1568A79A26ABCB75C294AA07AB73C53A7D168F2B898F93BE' c:\r\s.txt

and got the following gpg error message:
usage: gpg [options] [filename]

and got the same syntax error mesage for each of the variants of 
the session key string, both with and without the 2 and : in front, 
and both with and without the ' before and after the string

what is the correct syntax to get this to work?



Concerned about your privacy? Follow this link to get
secure FREE email:

Free, ultra-private instant messaging with Hush Messenger

Promote security and make money with the Hushmail Affiliate Program:

More information about the Gnupg-users mailing list