Skip to content

The-Silent-One/totp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

totp

Time-based one-time password implementation

Table of Contents
  1. About
  2. How to use
  3. License

About

This is a rust implementation of the TOTP algorithm for education/learning process.

(back to top)

How to use

initial parameters

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.

example

(back to top)

License

Distributed under the BSD 2-Clause License. See LICENSE.txt for more information.

(back to top)

About

Time-based one-time password implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages