Problems decrypting with multifile
Werner Koch
wk at gnupg.org
Wed Sep 17 14:51:02 CEST 2008
Hi,
I just tried it:
$ for i in 1 2 3; do fortune | gpg -er alfa --no-encrypt-to >x$i.gpg; done
$ ls -l
total 12
-rw-r--r-- 1 wk wk 390 Sep 17 14:45 x1.gpg
-rw-r--r-- 1 wk wk 534 Sep 17 14:45 x2.gpg
-rw-r--r-- 1 wk wk 386 Sep 17 14:45 x3.gpg
$ gpg --decrypt-files --no-use-agent x1.gpg x2.gpg x3.gpg
You need a passphrase to unlock the secret key for
user: "Alfa Test (demo key) <alfa at example.net>"
1024-bit ELG-E key, ID 46A871F8, created 1999-03-08 (main key ID 68697734)
gpg: encrypted with 1024-bit ELG-E key, ID 46A871F8, created 1999-03-08
"Alfa Test (demo key) <alfa at example.net>"
gpg: encrypted with 1024-bit ELG-E key, ID 46A871F8, created 1999-03-08
"Alfa Test (demo key) <alfa at example.net>"
gpg: encrypted with 1024-bit ELG-E key, ID 46A871F8, created 1999-03-08
"Alfa Test (demo key) <alfa at example.net>"
$ ls -l
total 24
-rw-r--r-- 1 wk wk 56 Sep 17 14:46 x1
-rw-r--r-- 1 wk wk 390 Sep 17 14:45 x1.gpg
-rw-r--r-- 1 wk wk 269 Sep 17 14:46 x2
-rw-r--r-- 1 wk wk 534 Sep 17 14:45 x2.gpg
-rw-r--r-- 1 wk wk 52 Sep 17 14:46 x3
-rw-r--r-- 1 wk wk 386 Sep 17 14:45 x3.gpg
$ cat x?
Q: How much does it cost to ride the Unibus?
A: 2 bits.
Good evening, gentlemen. I am a HAL 9000 computer. I became operational
at the HAL plant in Urbana, Illinois, on January 11th, nineteen hundred
ninety-five. My supervisor was Mr. Langley, and he taught me to sing a
song. If you would like, I could sing it for you.
I had a lease on an OEDIPUS COMPLEX back in '81 ...
As you can see, I have no problems. The --no-encrypt-to is used to
supprerss encryption to my onw key, the --no-use-agent is there so that
the gpg-agent is not used.
What version of gpg are you running and on what OS?
Is there something special in your ~/.gnupg/gpg.conf?
(Why do you run under root?)
Salam-Shalom,
Werner
--
Linux-Kongress 2008 + Hamburg + October 7-10 + www.linux-kongress.org
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.
More information about the Gnupg-users
mailing list