Skip to content

Time-based One-time Password Python module for server side

License

Notifications You must be signed in to change notification settings

Yasmine92/totp-server-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

totp-server-module

Time-based One-time Password Python module for server side

##Steps

###Step1:key Genaration

we generate the key that could be added to the TOTP mobile app, via base32, or QR code

[root@yasmine]# python generate_key.py
Generated key in ascii==> c?ednAbHNeP:OdlowJUr
Generated key in hex==> 633f65646e4162484e65503a4f646c6f774a5572
Generated key in base32==> MM7WKZDOIFREQTTFKA5E6ZDMN53UUVLS
google_auth_qr==>https://chart.googleapis.com/chart?chs=166x166&chld=L|0&cht=qr&chl=otpauth://totp/new%20secret%20key%3Fsecret=MM7WKZDOIFREQTTFKA5E6ZDMN53UUVLS

###Step1:Generated code testing

we test that the generated code by the mobile app is approved by the TOTP server, using this module

[root@yasmine]#python validate_generated_totp.py
Enter your key and code value: MM7WKZDOIFREQTTFKA5E6ZDMN53UUVLS 430257
MM7WKZDOIFREQTTFKA5E6ZDMN53UUVLS
430257
your code is correct

About

Time-based One-time Password Python module for server side

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages