session key for decryption
David Shaw
dshaw@jabberwocky.com
Wed May 8 22:47:01 2002
On Wed, May 08, 2002 at 12:36:57PM -0400, vedaal wrote:
> i had already checked the man page, and used both commands, but could not
> get it to work.
> i started with a file d:\skt1.txt , encrypted to a test key,
> then used the --show-session-key command,
> and after decryption, got a session key string, and the decrypted plaintext
> output into a file,
> then, when i wanted to use the session key string to decrypt the original
> file, i could not get it to work.
>
> here is the sequence of gpg commands:
>
> D:\WinPT>gpg --show-session-key d:\skt1.txt
>
> You need a passphrase to unlock the secret key for
> user: "test <test@key.test>"
> 2048-bit RSA key, ID F77AFF7B, created 2001-04-26
>
> gpg: session key: "1:BDFC53FC47F75CAD12A83F16B60AE805"
[..]
> D:\WinPT>gpg --override-session-key BDFC53FC47F75CAD12A83F16B60AE805
> d:\skt1.txt
The leading "1:" is part of the session key.
David
--
David Shaw | dshaw@jabberwocky.com | WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
"There are two major products that come out of Berkeley: LSD and UNIX.
We don't believe this to be a coincidence." - Jeremy S. Anderson