Crates.io | nfc-oath |
lib.rs | nfc-oath |
version | 0.2.0 |
source | src |
created_at | 2017-10-06 05:41:01.489422 |
updated_at | 2018-10-01 05:19:05.661558 |
description | A rust library for generating OTP codes using a hardware token and libnfc compatible reader. |
homepage | https://github.com/evq/rust-nfc-oath |
repository | https://github.com/evq/rust-nfc-oath |
max_upload_size | |
id | 34538 |
size | 21,949 |
A rust library for generating OTP codes using a hardware token and libnfc compatible reader.
This has been tested for generating TOTP codes with the Yubikey NEO and Fidesmo Card. Management features are not implemented, the intended use case is an embedded reader which generates codes from a pre-provisioned credential with a known name, such as an nfc door reader.
Most of this code derives from the official Yubico code for OTP generation: https://github.com/Yubico/yubikey-manager/blob/master/ykman/oath.py
The Fidesmo android TOTP NFC tutorial was also consulted and is the source for the test credential used in the included example: https://developer.fidesmo.com/tutorials/android-totp