Hash and compare text string using bcrypt. Bcrypt is a password-hashing function based on the Blowfish cipher.