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.
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.