Generate bcrypt password hashes with configurable salt rounds. Includes password verification.
Higher rounds = more secure but slower. 10-12 is recommended for most use cases.
Compare a password against a bcrypt hash to verify if they match.
Bcrypt is a password hashing function designed to be slow and resistant to brute-force attacks.
Recommended: Use 10-12 rounds for web applications. Higher values provide better security but increase server load.