bcryptool is a command-line utility written in Rust for hashing passwords with bcrypt and verifying strings against bcrypt hashes.
- Hash a string using bcrypt.
- Verify if a given string matches a provided bcrypt hash.
-
Clone the repository:
git clone https://github.com/awsms/bcryptool.git cd bcryptool -
Build the project:
cargo build --release
To hash a string, simply provide the string as an argument:
bcryptool "my_password"To verify if a string matches a provided bcrypt hash, use the --compare flag:
bcryptool --compare "$2y$12$NUnwvTu7dA2qMtP9/.EMvu5S8F52vDrAWX8VeiKszxM4wKYaZ.mE." "my_password"