linux - openssl 加密和解密文件
openssl enc -ciphers -list
root@myubuntu:~/xxx# openssl enc -aes-256-cbc -in clear.txt -out clear.data -iter 10
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
root@myubuntu:~/xxx#
root@myubuntu:~/xxx# openssl enc -d -aes-256-cbc -in clear.data -iter 10 -out xxx.txt
enter aes-256-cbc decryption password:
root@myubuntu:~/xxx#