OpenSSL:修订间差异

来自Gea-Suan Lin's Wiki
跳到导航 跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
第8行: 第8行:
openssl enc -bf-cbc -pbkdf2 -in a.tgz -out a.tgz.bf-cbc
openssl enc -bf-cbc -pbkdf2 -in a.tgz -out a.tgz.bf-cbc
openssl enc -d -bf-cbc -pbkdf2 -in a.tgz.bf-cbc -out a.tgz
openssl enc -d -bf-cbc -pbkdf2 -in a.tgz.bf-cbc -out a.tgz
</syntaxhighlight>
值得注意的是,OpenSSL在1.1.0後修改了digest演算法(從<code>md5</code>變成<code>sha-256</code>),所以處理舊的檔案時需要指定<code>md5</code>:
<syntaxhighlight lang="bash">
openssl enc -d -bf-cbc -md md5 -in a.tgz.bf-cbc -out a.tgz
</syntaxhighlight>
</syntaxhighlight>



2023年2月17日 (五) 04:30的版本

OpenSSL是一套综合各种密码学演算法的软体。

范例

加密与解密,这边开了-pbkdf2

openssl enc -bf-cbc -pbkdf2 -in a.tgz -out a.tgz.bf-cbc
openssl enc -d -bf-cbc -pbkdf2 -in a.tgz.bf-cbc -out a.tgz

值得注意的是,OpenSSL在1.1.0后修改了digest演算法(从md5变成sha-256),所以处理旧的档案时需要指定md5

openssl enc -d -bf-cbc -md md5 -in a.tgz.bf-cbc -out a.tgz

外部连结