How to encrypt files?

Support for security such as Firewalls and securing linux
Post Reply
jacob600
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?

Thanks,

pjwelsh
Posts: 2598
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:
http://polishlinux.org/howtos/encrypted-home-partition-in-linux/
http://linuxreviews.org/howtos/security/
or
losetup

otherwise, "bcyrpt" can be had from http://bcrypt.sourceforge.net/index.html

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

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

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

JohnC
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”