开发者

Encrypt the file for security

开发者 https://www.devze.com 2022-12-26 13:55 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消