Using symmettric keys in GPG

Atom 'Smasher' atom at suspicious.org
Wed Jun 9 09:45:10 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 9 Jun 2004, Varun Pitale wrote:

> I want to use GPG in our office, and want to use symmetric encryption for
> sending files.. The reason being the files are too big (> 400 MB) and to
> encrypt them using public-key becomes too slow.. How can I generate
> symmetric keys using my choice of the algorithm and will the receiver
> automatically find out what algorithm I am using or does he have to make
> changes to his GPG too?/
==============================

only the session key is encrypted asymmetrically, the bulk data (aka the
message) encryption is done symmetrically in pgp/gpg (ok, there are a few
bits aside from the session key that are encrypted asymmetrically, but
it's still going to be a tiny bit of data that's handled that way).

since the asymmetrically encrypted part is small, you won't notice any
difference in speed between using gpg in the "normal" public/private key
way vs symmetric encryption (except for the compression, which can run
slow).

in real life tests, it might ~seem~ like it's taking longer using
asymmetric crypto, but that's probably because of the compression (which
is usually on by default for asymmetric encryption)... if you set
'--compress-algo 0' (which turns off compression) then symmetric and
asymmetric encryption will both take about the same time.

if you *really* want to use symmetric crypto, let us know... one of us can
post details....


	...atom

 _________________________________________
 PGP key - http://atom.smasher.org/pgp.txt
 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
 -------------------------------------------------

	"There's enough on this planet for everyone's needs
	 but not for everyone's greed"
		-- Mahatma Gandhi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
Comment: What is this gibberish?  -  http://atom.smasher.org/links/#digital_signatures

iEYEARECAAYFAkDGwAoACgkQnCgLvz19QeP1VACbBWrMLZvc4rL7cZaItpwDM6OP
dY0AnjgzpCKFkz6GXX4De3OcdQ2+Ngh3
=NtaA
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list