easy_bcrypt
A simple wrapper providing a convenient reentrant interface for the bcrypt password hashing algorithm.
Summary
| Latest Version | 2.0.3 |
|---|---|
| License | CC0 |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-08-31 07:14 |
Tags
Authors
- Ricardo Garcia
Installation
nimble install easy_bcrypt
choosenim install easy_bcrypt
git clone https://github.com/Akito13/easy-bcrypt.git
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| easy_bcrypt | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/Akito13/easy-bcrypt.git |
|---|---|
| Homepage | https://github.com/Akito13/easy-bcrypt.git |
| Registry Source | nimble_official |
README
Brief Example
Hashing a password:
let passwordHash = hashPw(password, genSalt(12))
Verifying a password:
let savedHash = ...
assert hashPw(password, savedHash) == savedHash
Storing a password in a database:
let passwordString = $passwordHash
dbconn.exec("...", passwordString)
Loading a password from a database:
let password = dbconn.exec(
"SELECT password FROM users WHERE username = ?;", username)
let passwordSalt = loadPasswordSalt(password)