Thanks to visit codestin.com
Credit goes to github.com

Skip to content

liberize/totp-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOTP Generator Implementation

A generator for TOTP based on RFC-6238.

Usage

Set OTP_TOKEN environment property to your desired otp token than run:

./bin/totp

To immediately put the generated token on the clipboard, run:

./bin/totp | pbcopy

Compliance to RFC

This generator is in full compliance to the RFC described here: RFC-6238.

Note: With the expection that right now times, and methods are not configurable. That is in the ROADMAP.

For OpenSSL on OSX

export OPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2j/include
export OPENSSL_LIB_DIR=/usr/local/Cellar/openssl/1.0.2j/lib

Alternatively:

cmake -DOPENSSL_INCLUDE_DIR=/usr/local/Cellar/openssl/1.0.2j/include -DOPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2j/ ..

Building

cd build
cmake .. && cmake --build .

About

C++ TOTP Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CMake 57.1%
  • C++ 42.9%