Multiple runs of gpg and differing filesizes
Gates, Scott
SGates at olbh.com
Wed Jan 28 09:28:37 CET 2004
That's par for the course.
The algorithm adds a certain amount of random data, because you're REALLY
just encrypting the session key which encrypted the data. Compression
happens before the encryption, if I'm remembering right; so if you turn off
compression, I'd be willing to bet the size would vary even more. I
wouldn't guess it would be TOO much, say +- 5%.
Why does it matter that the files be EXACTLY the same size?
-----Original Message-----
From: Marcus Williams [mailto:marcus at quintic.co.uk]
Sent: Tuesday, January 27, 2004 6:52 AM
To: gnupg-users at gnupg.org
Subject: Multiple runs of gpg and differing filesizes
Hi -
If I pick a reasonable sized file (>1mb say) and run something like:
for i in `seq 50`; do cat file.tar | /usr/bin/gpg--symmetric
--passphrase-fd=3 > file.$i 3<pp ; done
I get 50 encrypted copies of the file, but they are not all the same size.
This leads me to three questions :)
1) Is this because of the internal compression?
2) If so, can I guarantee the same filesize if I switch off internal
compression?
3) If so, can I pipe the file through gzip _and then_ gpg with no
compression can I guarantee the same filesize?
(I'm using gpg 1.2.4)
Thanks
Marcus
--
Marcus Williams -- http://www.quintic.co.uk
Quintic Ltd, 39 Newnham Road, Cambridge, UK
This message is private [ ] public [*]
_______________________________________________
Gnupg-users mailing list
Gnupg-users at gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
More information about the Gnupg-users
mailing list