Encrypt/decript large files
David Shaw
dshaw at jabberwocky.com
Mon Jun 30 18:25:02 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, Jun 30, 2003 at 10:37:49AM -0400, Michael Young wrote:
> Sorry about the bogus subject line on my first reply.
>
> > From: Eric Harlow <linuxgeek at yahoo.com>
> ...
> > type file.bak | gpg -o output.gpg --encrypt
>
> My initial guess was that you were seeing mod-2^32 truncation, but
> after fiddling with the Windows "type" program, it appears that it truncates
> binary files (most likely because it is line-oriented). In any case,
> "type ... |" just isn't a reliable way to deal with large, binary input.
That was my error. I suggested 'type' as an alternative to the Unix
'cat' (which of course works with binary data).
Eric, please try this:
gpg -o output.gpg --encrypt < thebigfile
If the problem is in fact large file support (which it looks like it
is), then getting the data via stdin like this should be a workaround.
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3rc1 (GNU/Linux)
Comment: Key available at http://www.jabberwocky.com/david/keys.asc
iD8DBQE/AFaq4mZch0nhy8kRAmCjAKC7Q0rrQs8G3g3Erng7v+juw6G1TQCfZTWo
ZTT01kzI3xtw3tpoZJz94zo=
=YGmp
-----END PGP SIGNATURE-----
More information about the Gnupg-devel
mailing list