【问题标题】:Python - Hard time understanding scrypt max timePython - 很难理解 scrypt 最大时间
【发布时间】:2013-06-14 23:09:04
【问题描述】:

据我了解最大时间参数:

data = scrypt.encrypt('MESSAGE', 'password', maxtime=0.1)

意味着 python 将在这段时间内散列。

但是,我可以低至 0.76,它仍然会解密

scrypt.decrypt(data, 'password', maxtime=0.076)

这是什么原因?为什么我不需要解密 maxtime = encrypt maxtime?

【问题讨论】:

    标签: python encryption cryptography scrypt


    【解决方案1】:

    您不需要,但建议您至少将其设置为 0.5 以干扰对您的密码的暴力攻击。 maxtime 不仅是最大时间,也是最小时间。如果您将 max time 设置得太低,则库将没有足够的时间对其进行解密。我会坚持更高的价值。

    scrypt 解释了一些内容

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-11-07
      • 1970-01-01
      • 2020-12-02
      • 1970-01-01
      • 1970-01-01
      • 2021-12-29
      相关资源
      最近更新 更多