I'm using openwrt linux distribution and I want to encrypt a file using AES. How can I do that quickly and easily, and how can I - or someone else -decrypt it again?
我正在使用openwrt linux发行版,我想使用AES加密文件。我怎样才能快速轻松地做到这一点,我怎么能 - 或其他人 - 再次解密呢?
1 个解决方案
#1
8
The quickest and easiest way is to use openssl
util (provided by openssl-util
package). For example, to encrypt a file, issue the following command:
最快捷最简单的方法是使用openssl util(由openssl-util包提供)。例如,要加密文件,请发出以下命令:
openssl enc -aes-256-cbc -in file.txt -out file.enc
To decrypt:
openssl enc -d -aes-256-cbc -in file.enc -out file.dec
#1
8
The quickest and easiest way is to use openssl
util (provided by openssl-util
package). For example, to encrypt a file, issue the following command:
最快捷最简单的方法是使用openssl util(由openssl-util包提供)。例如,要加密文件,请发出以下命令:
openssl enc -aes-256-cbc -in file.txt -out file.enc
To decrypt:
openssl enc -d -aes-256-cbc -in file.enc -out file.dec