https://github.com/riverrun/branglecrypt
Bcrypt Erlang / C library
https://github.com/riverrun/branglecrypt
Last synced: about 1 month ago
JSON representation
Bcrypt Erlang / C library
- Host: GitHub
- URL: https://github.com/riverrun/branglecrypt
- Owner: riverrun
- License: other
- Created: 2014-12-26T01:10:58.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-02-14T03:00:38.000Z (over 10 years ago)
- Last Synced: 2025-03-12T18:45:00.034Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 72.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# branglecrypt
Erlang / C bcrypt hashing library.
## Features
* Branglecrypt is lightweight, secure and easy to use.
* None of the NIFs run for a long time.
## Usage
There are functions to generate a salt `bcrypt:gen_salt`
and then use that salt to hash a password `bcrypt:hashpw`, but there are
also the following three convenience functions (with examples):
* hashpwsalt -- generate a salt and then use that salt to hash a password
Hash = bcrypt:hashpwsalt("difficult2guess").
* checkpw -- check the password against the stored hash
bcrypt:checkpw("difficult2guess", Stored_hash).
* dummy_checkpw -- run a dummy check that always returns false
bcrypt:dummy_checkpw().
## License
BSD. For more details, view the `LICENSE` file.