daqing

PB2的密码存储没有加Salt

  •  
  •   daqing · Feb 14, 2012 · 8531 views
    This topic created in 5211 days ago, the information mentioned may be changed or developed.
    今天读PB2代码发现的,直接用SHA1保存的。
    2 replies    1970-01-01 08:00:00 +08:00
    ayanamist
        1
    ayanamist  
       Feb 14, 2012
    估计当时@Livid 没考虑到这个问题吧。
    加salt的目的是防止字典攻击,利用已有的密码和hash结果来寻找弱密码。不是为了反向破解。
    m1a0
        2
    m1a0  
       Feb 14, 2012
    开源项目还是采用动态salt比较好啊, 使用彩虹表来攻击弱密码成本还是很低的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5263 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 09:03 · PVG 17:03 · LAX 02:03 · JFK 05:03
    ♥ Do have faith in what you're doing.