using aes256

Robert J. Hansen rjh at sixdemonbag.org
Tue Oct 29 19:07:46 CET 2024


Please don't send HTML to this list.  Some of the people you really hope 
will see your email won't look at HTML email.  :)

> I am having no luck with trying to encrypt a file with a key that I 
> would like to use.

This isn't really a GnuPG use case.  If you're looking for an AES256 
encryption or decryption tool there are other things that will work 
better.  GnuPG is pretty tightly integrated with RFC4880, which means 
your output won't just be AES256 but AES256 with additional metadata, 
framing, etc.

> this is the command I used:    gpg -e -a --symmetric --cipher-algo 
> AES256 -k keysupplied --input file.txt --output file .gpg

Are you sure that -k does what you think?

Try running "gpg -k".

-k lists the available public certificates.  It doesn't specify a 
symmetric key to use.  :)

Unfortunately, I don't remember offhand whether there's a command-line 
flag to force a particular AES256 key.

Hope this helps!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x1E7A94D4E87F91D5.asc
Type: application/pgp-keys
Size: 1355 bytes
Desc: OpenPGP public key
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20241029/4ea04e03/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20241029/4ea04e03/attachment.sig>


More information about the Gnupg-users mailing list