How to Encrypt file
How to create encrypt file in linux? I am try to ecryptfs command but display the error.
mount -t ecryptfs file file I slected both openssl and passphrase. but finaly i got displays err mounting ecryptfs. what can i do? already use crypt . but err occuring public key not found. ? |
If you want to encrypt just one file use openssl or crypt. If you want to create encrypted container you can use crypted loopback or dm-crypt with loopback to file.
|
hi
use vim -x filename. |
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your question get the exposure it deserves.
|
The encryption supported by vim is very week. It is only intended to prevent another user from opening a plain text text file.
Here is an example of encrypting and decrypting a file using openssl: openssl enc -cast-cbc -e -in ../enc.man -out enc.man.enc openssl cast-cbc -d -in enc.man.enc -out enc.man For more examples using openssl to encode files, read the "enc" man page. It lists the cyphers supported and there are a number of examples at the bottom. |
I personally use ccrypt:
http://ccrypt.sourceforge.net/ But if you have gpg installed you can also use that: http://www.madboa.com/geek/gpg-quickstart/ |
I put together a quick howto on encrypting files using openssl, which should be included in your "base" system install.
GnuPG is another fine choice. |
gpg -c <filename> to encrypt it
gpg -d <filename>.gpg to decrypt the encrypted file :) |
All times are GMT -5. The time now is 05:45 AM. |