#openssl #加密 tar使用 AES-256-CBC 加密算法时,破解的难度非常高。AES(高级加密标准)是目前最安全的对称加密算法之一,广泛用于保护敏感数据。
加密打包
tar -cvf - /root/path/ | openssl enc -aes-256-cbc -e -out /root/1.tar.enc而后输入密码
linux解密
openssl enc -aes-256-cbc -d -in 1.tar.enc | tar xvf -win解密
openssl enc -aes-256-cbc -d -in 1.tar.enc -out 1.tar