Crypto & Encoding
Bcrypt Hash & Compare
Generate a bcrypt hash with adjustable cost and compare a string against a hash.
Generate hash
Higher cost = slower but stronger. Each unit doubles the work.
bcrypt accepts 4–15 here; default is 10.
Compare
Check whether a string matches an existing bcrypt hash.