以下是Ubuntu中常用的文件加密解密方法及操作:
sudo apt-get install gpggpg --output encrypted_file.gpg --encrypt --recipient "邮箱/用户名" 文件名gpg --output decrypted_file --decrypt encrypted_file.gpg(需输入密码)sudo apt-get install opensslopenssl enc -aes-256-cbc -salt -in 文件名 -out encrypted_file.enc -pass pass:密码openssl enc -d -aes-256-cbc -in encrypted_file.enc -out decrypted_file -pass pass:密码sudo apt-get install veracryptveracrypt --create /path/加密卷路径 --size 1G --encryption AES --hash SHA-512 --password 密码veracrypt /path/加密卷路径 /mnt/挂载点 --password 密码(解密时用-d卸载).7z或.zip文件(支持7-Zip等工具)