https://github.com/benoitc/erlang-pbkdf2-nif
PBKDF2 NIF implementation
https://github.com/benoitc/erlang-pbkdf2-nif
Last synced: 2 months ago
JSON representation
PBKDF2 NIF implementation
- Host: GitHub
- URL: https://github.com/benoitc/erlang-pbkdf2-nif
- Owner: benoitc
- License: isc
- Created: 2016-03-22T18:30:32.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-20T14:01:19.000Z (over 9 years ago)
- Last Synced: 2025-10-30T00:44:42.330Z (4 months ago)
- Language: C
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pbkdf2_nif
==========
A [PBKDF2](https://en.wikipedia.org/wiki/PBKDF2) implementation for [Erlang](http://www.erlang.org/) applications provided as a nif.
This implementation is using an HMAC_SHA1 algorithm. It's based on source code from the [OpenBSD](https://openbsd.org) project.
For a pure Erlang implementation you can use [erlang-pbkdf2](https://github.com/basho/erlang-pbkdf2).
Usage
-----
```erlang
1> Password = <<"password">>,
1> Salt = <<"ATHENA.MIT.EDUraeburn">>,
1> NbRounds = 1200,
1> pbkdf2:pbkdf2(Password, Salt, NbRounds).
<<92,8,235,97,253,247,30,78,78,195,207,107,161,245,81,43,
167,229,45,219>>
```
Build
-----
$ rebar3 compile