【问题标题】:PHP difference between mcrypt and openssl?mcrypt和openssl之间的PHP区别?
【发布时间】:2011-04-04 15:29:21
【问题描述】:

为什么这两种在 ecb-mode 中使用河豚的方法会有不同的输出?

<?php

echo bin2hex(mcrypt_encrypt("blowfish", "test", "test", "ecb"))."\n";
echo bin2hex(openssl_encrypt("test", "bf-ecb", "test", true))."\n";

?>

【问题讨论】:

    标签: php encryption openssl mcrypt


    【解决方案1】:

    因为密码到加密密钥的派生方法不同。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-07
      • 2014-11-28
      • 2013-09-13
      • 1970-01-01
      • 2020-07-29
      • 1970-01-01
      • 2017-10-22
      • 2011-11-23
      相关资源
      最近更新 更多