TOTP Generator

Build Status Download

IMPORTANT: This tool is built for testing purposes only, it is not intended to be part of a production stack.

License

This code is open source software licensed under the Apache 2.0 License.

Attribution

The code in this project is based on Mark Lister's project Scala TOTP Auth

Instructions

This tool generates a 8-digits TOTP code (Timed Based One-Time Password) from a shared secret key.
Each TOTP code is valid for a time window of 30 seconds.
The implementation uses a HMAC (Hash-based Message Authentication Code) SHA-512 encryption algorithm.

Packaging

You can find the Jar containing the binaries in here:

Alternatively, the Jar containing the binaries can be built locally by running sbt clean assembly

Running

./generate-totp.sh [TOTP_SECRET]

For example: ./generate-totp.sh BZDHSGCIGQXRWVQX

Unit tests

sbt test

Useful links: