简体   繁体   English

可重现的加密文件

[英]reproducible encrypted file

I need to create encryped reproducible file (same command with same password shall produce same encrypted file).我需要创建加密的可重现文件(具有相同密码的相同命令将产生相同的加密文件)。 I use the command:我使用命令:

openssl enc -e -aes256 -pbkdf2 -base64 -nosalt -pass "pass:a_key" -out file.tar.gz.enc -in file.tar.gz

It is ok with reproducing.复制没问题。 But seems there is no backward compatibility.但似乎没有向后兼容性。 The file encrypted with openssl in my Fedora 30 does not decryped in Fedora 23.在我的 Fedora 30 中使用 openssl 加密的文件在 Fedora 23 中没有解密。

It suits me to use another tool (zip, 7z, gpg) to reach my goal, but I need help with "reproduction" options if any.它适合我使用其他工具(zip、7z、gpg)来实现我的目标,但如果有的话,我需要有关“复制”选项的帮助。

Resolved.解决。

remove -pbkdf2, ignore warning, add -md md5.删除 -pbkdf2,忽略警告,添加 -md md5。

Archive created in Fedora 30 successfully unpacked in Fedora 20.在 Fedora 30 中创建的存档在 Fedora 20 中成功解压。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM