Time-based one-time password implementation
Table of Contents
This is a rust implementation of the TOTP algorithm for education/learning process.
There are 4 parameters:
- key ( = very_secret_key ) : used as key/seed for the algorithm
- T0 ( = 0 seconds ) : the inital steps from epoch unix stampstand
- X ( = 5 seconds ) : the time to live (TTL) of the password
- digits ( = 8 ) : the length of the password generated
To run the program use
cargo run
You'll receive in the terminal, the password generated based on your timestamp, with a progressbar under it showcasing the TTL.
Once the bar fills up, it will restarts with a new generated password.
Distributed under the BSD 2-Clause License. See LICENSE.txt for more information.

