#!/bin/bash #用于解密文件, 使用方法:./decrypt.sh output.txt decrypted.txt mypassword if [ $# -ne 3 ]; then echo "Usage: $0 " exit 1 fi input_file=$1 output_file=$2 password=$3 openssl enc -d -aes-256-cbc -in "$input_file" -out "$output_file" -k "$password"