Passwords shouldn't contain NULL bytes by tenderlove · Pull Request #168 · bcrypt-ruby/bcrypt-ruby

Any bytes after the NULL byte won't be part of the hash because the hashing function assumes that the input is a NULL byte terminated C string. This means we should not allow passwords that contai...