RFC 6238 - TOTP: Time-Based One-Time Password Algorithm
https://tools.ietf.org/html/rfc6238
TOTP 、実際ハッシュ関数という概念をわかっていれば滅茶苦茶単純な話なのよね
> HOTP(K,C) = Truncate(HMAC-SHA-1(K,C))
> Basically, we define TOTP as TOTP = HOTP(K, T), where T is an integer and represents the number of time steps between the initial counter time T0 and the current Unix time.