How to encrypt files?

Support for security such as Firewalls and securing linux
Post Reply
Posts: 6
Joined: 2006/09/11 16:04:07

How to encrypt files?

Post by jacob600 » 2007/11/07 21:53:06

I have some text files that I would like to encrypt. What methods/programs are available on Centos4 to do this? Also, is there an option with gzip that I am missing or does it not natively contain encryption capabilities?


Posts: 2625
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: How to encrypt files?

Post by pjwelsh » 2007/11/08 20:37:01

Lots of options. You may even want to consider one of the encrypted filesystem options like:

otherwise, "bcyrpt" can be had from

There are other options. Look at google for "file encryption linux" or similar.

Posts: 1015
Joined: 2006/06/10 18:27:44
Location: 32 4′N 34 47′E

How to encrypt files?

Post by yyagol » 2007/11/11 06:43:49

Nice ...
thanks for the tip i didn't know about bcrypt , its a very useful program

Posts: 17
Joined: 2007/04/01 08:32:12

Re: How to encrypt files?

Post by JohnC » 2007/11/12 19:53:06

Or you could use GnuPG which should be already installed.
For example:
'gpg -o fileout --cipher-algo aes256 --symmetric filein' to encrypt filein to fileout.
'gpg --decrypt fileout' to decrypt fileout.

The above is for CentOS 5 but should work on CentOS 4 as well.
See 'man gpg' for more info.

Post Reply

Return to “CentOS 4 - Security Support”