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 

test.txt.nc

Decrypt the .nc file

mycrypt -d test.txt.nc

 

推荐这些相关文章

  • 看了之后有帮助吗?

订阅这个博客:

关注我的微博:

关注我的推特: