bhash

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

bhash

Утилита командной строки для работы с bcrypt хешированием паролей.

Возможности

  • Генерация bcrypt хеша из пароля
  • Проверка соответствия пароля и хеша
  • Получение стоимости (cost) хеша

Установка

go install github.com/KiboMibo/bhash@latest

Использование

Генерация хеша
bhash -p "your_password" -c 10

Флаги:

  • -p, --pass: Пароль для хеширования
  • -c, --cost: Стоимость bcrypt (по умолчанию 10)
Проверка хеша
bhash -p "your_password" -h "your_hash"

Флаги:

  • -p, --pass: Пароль для проверки
  • -h, --hash: Хеш для проверки
Получение стоимости хеша
bhash -h "your_hash"

Флаги:

  • -h, --hash: Хеш для анализа

Разработка

Запуск тестов
go test ./...

Лицензия

MIT

Documentation

Overview

Package main предоставляет утилиту командной строки для работы с bcrypt хешированием. Она позволяет генерировать хеши паролей и проверять их валидность.

Jump to

Keyboard shortcuts

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