Actually I have a file . I am working in linux environment. I need to encrypt 开发者_如何学Cthat file for secure purpose with giving the some password. The operation could be like zip , tar any compression. When I extract the file It should ask me password , only then it should get extracted
Thanks in Advance
gpg --symmetric
and gpg --decrypt
should do what you want.
Simple, use openssl.
openssl enc -aes-256-cbc -salt -in plain.txt -out myultrasecretfile.enc
If you want to compress before, that is your choice.
I would use GPG.
Or, you can use any zip library that supports AES...
Did you try vi -x filename
? It is not exactly full-featured encryption, but it might do what you want.
i like aespipe
as you can use it completely non-interactively from command line or scripts, and it will work with any stream of data.
精彩评论