Skip to content

CLI tool for hashing passwords with bcrypt and verifying strings against bcrypt hashes, written in Rust

License

Notifications You must be signed in to change notification settings

awsms/bcryptool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bcryptool

bcryptool is a command-line utility written in Rust for hashing passwords with bcrypt and verifying strings against bcrypt hashes.

Features

  • Hash a string using bcrypt.
  • Verify if a given string matches a provided bcrypt hash.

Installation

  1. Clone the repository:

    git clone https://github.com/awsms/bcryptool.git
    cd bcryptool
  2. Build the project:

    cargo build --release

Usage

Hashing a string

To hash a string, simply provide the string as an argument:

bcryptool "my_password"

Verifying a string against a hash

To verify if a string matches a provided bcrypt hash, use the --compare flag:

bcryptool --compare "$2y$12$NUnwvTu7dA2qMtP9/.EMvu5S8F52vDrAWX8VeiKszxM4wKYaZ.mE." "my_password"

About

CLI tool for hashing passwords with bcrypt and verifying strings against bcrypt hashes, written in Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages