how to create a symmetric cipher
laurent.jumet at skynet.be
Wed Nov 15 08:54:42 CET 2006
Hello Wei !
"Wei Wu [H]" <wwu at dls.net> wrote:
> I want to create a symmetric cipher such as AES to encrypt some data, and
> think gpg (GnuPG Version 126.96.36.199) may do this. But I found it gives only
> three options, none is symmetric. I would appreciate if anyone can point me
> to another or way to do it?
will use CAST5 by default, but you can change that choice by using --cipher-algo option.
Or better yet, you can define a permanent list of preferred encryptions in --personal-cipher-preferences : the first one will be used for symmetric.
AES is "S7"
personal-cipher-preferences S7 S1 S10 S3 S4 S2
Of course, each time you make a symmetric encryption, you'll need to type a PassPhrase (but not the one you are using for your secret key), and the recipient must have that PassPhrase in order to decode.
More information about the Gnupg-users