Hacker News new | ask | show | jobs
by jmuguy 493 days ago
I was curious how bcrypt-ruby would handle this. It does not throw an error for input length larger than 72. However the actual API for the gem makes it pretty clear its for hashing a password, and not just hashing in general - as you can see from the code.

https://gist.github.com/neontuna/dffd0452d09a0861106c0a46669...