Skip to content

This repository contain implementation of TOTP 2FA standard designed using Rust

License

Notifications You must be signed in to change notification settings

artech-git/rust-TOTP-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOTP-server

This project implements a basic Time Based Authentication system implemented in Rust which can be deployed on aws-lambda or can be operated on native system as well

to start the server ~$ cargo run

to test the code ~$ cargo test


For sending a fresh request

~$ curl -X GET http://localhost:3000/register -v

response produced contains a QR code which you can scan in your 2FA app to verify

   

             




  1. open the 2FA app (google authenticator)
  2. scan the QR generated in the response
  3. Accept the account generated
  4. now you can enter the code in 30 second interval

About

This repository contain implementation of TOTP 2FA standard designed using Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages