bcrypt-password-checker

command module
v0.0.0-...-452021e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

bcrypt-password-checker

Usage of bcrypt-password-checker:
-cost int
        cost (aka rounds) (default 10)
-file string
        file to scan for matching hashes, - for STDIN
-hash string
        bcrypt hash
-password string
        the password to check hash against

Installation

go install github.com/mxcu/bcrypt-password-checker@latest

Usage

Hash a given password:

# password from command line
bcrypt-password-checker -password abc123xyz

# read password from terminal ( -file != '-')
bcrypt-password-checker

Check if password matches a given hash:

bcrypt-password-checker -password abc123xyz -hash '$2a$10$HRw/ZX4iAZaBWnF.OYMYd.hOBsqeAxulYAHt/xuC/B17Ch5Ia16ji'

Check file for hashes, print out all hashes that match the given password:

bcrypt-password-checker -password abc123xyz -file README.md

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL