Page 1 of 1

How to encrypt files?

Posted: 2007/11/07 21:53:06
by jacob600
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,

Re: How to encrypt files?

Posted: 2007/11/08 20:37:01
by pjwelsh
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.

How to encrypt files?

Posted: 2007/11/11 06:43:49
by yyagol
Nice ...
thanks for the tip i didn't know about bcrypt , its a very useful program

Re: How to encrypt files?

Posted: 2007/11/12 19:53:06
by JohnC
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.