ブックマーク / blog.ircmaxell.com (1)

  • Security Issue: Combining Bcrypt With Other Hash Functions

    The other day, I was directed at an interesting question on StackOverflow asking if password_verify() was safe against DoS attacks using extremely long passwords. Many hashing algorithms depend on the amount of data fed into them, which affects their runtime. This can lead to a DoS attack where an attacker can provide an exceedingly long password and tie up computer resources. It’s a really good q

    tmatsuu
    tmatsuu 2015/04/05
    パスワード用ハッシュとして知られるbcryptはパスワードに72文字までしか使えない。もしsha256などのhexstrをbcryptに食わせてたりすると悲惨なことになるので気をつけろ。oh…
  • 1