#devices #communication #nfc

sys nfc-oath

A rust library for generating OTP codes using a hardware token and libnfc compatible reader

2 unstable releases

Uses old Rust 2015

0.2.0 Oct 1, 2018
0.1.0 Oct 6, 2017

#712 in Authentication

40 downloads per month

MIT license

21KB
525 lines

rust-nfc-oath

A rust library for generating OTP codes using a hardware token and libnfc compatible reader.

Status

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.

See Also

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

Dependencies

~380KB