Encrypt/decript large files
dshaw at jabberwocky.com
Mon Jun 30 18:25:02 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3rc1 (GNU/Linux)
Comment: Key available at http://www.jabberwocky.com/david/keys.asc
-----END PGP SIGNATURE-----
More information about the Gnupg-devel