otp is a Haskell tool that generates time-based one-time passwords as specified in RFC 6238.
otp
Generate RFC 6238 time-based one-time passwords