Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xandkar/erlang-hotp
HMAC-Based One-Time Password Algorithm, as described in RFC 4226
https://github.com/xandkar/erlang-hotp
erlang hotp rfc-4226
Last synced: 3 months ago
JSON representation
HMAC-Based One-Time Password Algorithm, as described in RFC 4226
- Host: GitHub
- URL: https://github.com/xandkar/erlang-hotp
- Owner: xandkar
- License: mit
- Created: 2015-06-29T04:46:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T12:31:33.000Z (over 3 years ago)
- Last Synced: 2024-09-18T14:10:52.043Z (4 months ago)
- Topics: erlang, hotp, rfc-4226
- Language: Erlang
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/xandkar/erlang-hotp.svg?branch=master)](https://travis-ci.org/xandkar/erlang-hotp)
HOTP
====Erlang adaptation of HMAC-Based One-Time Password Algorithm, as described in
[RFC 4226].[RFC 4226]: https://tools.ietf.org/html/rfc4226
Usage
-----Simplest example:
```erlang
1> Secret = hotp_secret:new().
<<104,212,164,165,146,193,202,163,7,141,26,71,82,17,133,
95,108,68,35,130>>
2>
2> hotp:cons(Secret, 0).
130575
3>
```See tests for more.