kiddin9-packages/openwrt-bcrypt-tool
github-actions[bot] 7bcc663810 🔥 Sync 2024-07-21 09:16:01
2024-07-21 09:16:01 +08:00
..
.gitattributes
LICENSE
Makefile 🔥 Sync 2024-07-21 09:16:01 2024-07-21 09:16:01 +08:00
README.md

bcrypt-tool

bcrypt-tool is a dandy CLI tool for generating and matching bcrypt hashes

GitHub

Project Overview

Module github.com/shoenig/bcrypt-tool provides a simple command line tool.

Getting Started

Install from Releases

The bcrypt-tool tool is available for the aarch64_cortex-a53 architechure from the Releases page.

Examples

Generate Hash from a Password

$ bcrypt-tool hash p4ssw0rd

Generate Hash from a Password with Cost

$ bcrypt-tool hash p4ssw0rd 31

Determine if Password matches Hash

$ bcrypt-tool match p4ssw0rd $2a$10$nWFwjoFo4zhyVosdYMb6XOxZqlVB9Bk0TzOvmuo16oIwMZJXkpanW

note: depending on your shell, you may need to escape the $ characters

Determine Cost of Hash

$ bcrypt-tool cost $2a$10$nWFwjoFo4zhyVosdYMb6XOxZqlVB9Bk0TzOvmuo16oIwMZJXkpanW

note: depending on your shell, you may need to escape the $ characters

Usage

bcrypt-tool [action] parameter ...

Actions

  • hash [password] <cost> Use bcrypt to generate a hash given password and optional cost (4-31)

  • match [password] [hash] Use bcrypt to check if a password matches a hash

  • cost [hash] Use bcrypt to determine the cost of a hash (4-31)

Contributing

The github.com/shoenig/bcrypt-tool module is always improving with new features and error corrections. For contributing bug fixes and new features please file an issue.

License

The github.com/shoenig/bcrypt-tool module is open source under the MIT license.