https://github.com/aenglisc/hkdf_erlang
An implementation of HKDF in Erlang.
https://github.com/aenglisc/hkdf_erlang
erlang hkdf rfc5869
Last synced: 10 months ago
JSON representation
An implementation of HKDF in Erlang.
- Host: GitHub
- URL: https://github.com/aenglisc/hkdf_erlang
- Owner: aenglisc
- License: apache-2.0
- Created: 2020-06-12T00:22:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T10:59:45.000Z (about 3 years ago)
- Last Synced: 2025-07-10T03:56:32.793Z (12 months ago)
- Topics: erlang, hkdf, rfc5869
- Language: Erlang
- Homepage: https://tools.ietf.org/html/rfc5869
- Size: 45.9 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HKDF
=====


[](https://hex.pm/packages/hkdf_erlang)
An implementation of [HKDF](https://tools.ietf.org/html/rfc5869) in Erlang.
Usage
-----
#### derive key
```erlang
OKM = hkdf:derive(sha384, <<"Never gonna give you up">>, 42).
```
#### extract key
```erlang
PRK = hkdf:extract(sha384, <<"Never gonna give you up">>).
```
#### expand key
```erlang
PRK = hkdf:extract(sha384, <<"Never gonna give you up">>).
OKM = hkdf:expand(sha384, PRK, 42).
```