5 releases
Uses old Rust 2015
0.2.0 | Jun 30, 2024 |
---|---|
0.1.4 | Sep 11, 2019 |
0.1.3 | Sep 22, 2018 |
0.1.2 | Dec 28, 2017 |
#279 in Authentication
38 downloads per month
21KB
389 lines
libotp implements RFC4226 and RFC6238. These RFCs are implemented by Google's Google Authenticator.
OTP can increases the security for various things, such as web services, servers and even private computers.
How OTP works
A secret is shared between the client and a device. Passwords are generated based on the shared secret.
It is possible to work in two modes:
- Counter based - The OTP is generated with a counter that is increased on each successful attempt.
- Time based - The OTP is generated based on time. Codes are valid for a pre-configured amount of time.
Features
Dependencies
~5–12MB
~226K SLoC