identical files -> non-identical encrypted files
Ian Zimmerman
itz at buug.org
Sun Jul 20 22:45:34 CEST 2008
I just noticed this today. I suppose this is completely obvious to most
readers of the list and perhaps not something they want to be bothered with;
apalogies if that's the case. I have a problem to solve :(
itz at matica:~$ echo foo > foo
itz at matica:~$ gpg-encrypt.sh foo foo1.gpg
itz at matica:~$ gpg-encrypt.sh foo foo2.gpg
itz at matica:~$ ls -l foo*
-rw-r--r-- 1 itz itz 4 Jul 20 13:33 foo
-rw-r--r-- 1 itz itz 904 Jul 20 13:33 foo1.gpg
-rw-r--r-- 1 itz itz 904 Jul 20 13:33 foo2.gpg
itz at matica:~$ cmp foo1.gpg foo2.gpg
foo1.gpg foo2.gpg differ: char 84, line 4
itz at matica:~$ cat mirror/bin/gpg-encrypt.sh
#! /bin/sh
set -e
if [ $# != 2 ]; then
echo 'usage: gpg-encrypt.sh FILE DESTINATION' >&2
exit 2
fi
file=$1
destination=$2
gpg --encrypt --recipient ABCD1234 --output $destination --armor --yes $file
So I suppose gpg puts some salt probably based on timestamp in. Can this
be disabled? Pretty please?
--
Ian Zimmerman <itz at buug.org>
gpg public key: 1024D/C6FF61AD
fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD
More information about the Gnupg-users
mailing list