Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpil/beecrypt
🐝 Buzzing Gleam bindings to the Erlang bcrypt hashing library
https://github.com/lpil/beecrypt
Last synced: 21 days ago
JSON representation
🐝 Buzzing Gleam bindings to the Erlang bcrypt hashing library
- Host: GitHub
- URL: https://github.com/lpil/beecrypt
- Owner: lpil
- Created: 2023-05-11T16:26:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T13:52:18.000Z (11 months ago)
- Last Synced: 2024-05-01T23:04:46.251Z (7 months ago)
- Language: Gleam
- Size: 10.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-gleam - beecrypt - [📚](https://hexdocs.pm/beecrypt/) - Buzzing Gleam bindings to the Erlang bcrypt hashing library (Packages / Cryptography)
README
# beecrypt 🐝
[![Package Version](https://img.shields.io/hexpm/v/beecrypt)](https://hex.pm/packages/beecrypt)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/beecrypt/)Buzzing Gleam bindings to the [Erlang bcrypt hashing library][erlang-bcrypt]!
Unfortunately Erlang's bcrypt library does not currently support Windows.
## Usage
Add it to your Gleam project:
```sh
gleam add beecrypt
```And get hashing:
```gleam
// The user gives us a password
let user_password = "blink182"// We salt and hash the password
let hash = beecrypt.hash(user_password)// The hash can be used to check if future passwords match
beecrypt.verify("blink182", hash) // -> True
beecrypt.verify("password", hash) // -> False
```API documentation can be found at , and further
documentation can be found in the [Erlang library's repository][erlang-bcrypt].[erlang-bcrypt]: https://github.com/erlangpack/bcrypt