More and more cloud services enter our life. Such as Cloud file store service Dropbox. We can not only rely on the Safety of the service provider. 

Two way to encrypt your content or files:

1. Encrypt by password in VIM

Just enter:

:set key=<password>

when you editing the file, then the file will be encrypted.

When opening the encrypted file, you will be asked to input the password.

If you want to convert a encrypted file to be a plain file, you should set the <password> to be empty.

2. Encrypt files by mcrypt in UBUNTU:

Install mcrypt:

sudo apt-get install mycrypt

Encrypt a file with password:

mcrypt -a blowfish test.txt

You will get a file named

Decrypt the .nc file

mycrypt -d



  • 看了之后有帮助吗?