/mfa-example

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

mfa-example

An example of generating MFA (multi-factor auth) tokens using the TOTP algorithm.

This is accompanying code for this blogpost.

See the RFC for all the gory details.

How to run

Install stack if you don't already have it.

$ stack build && stack exec mfa-example-exe
816808

The number printed to stdout is an MFA token.