Skip to main content

Appendix B. Test Vectors

Appendix B. Test Vectors

This section provides test values that can be used for the HOTP time-based variant algorithm interoperability test.

The test token shared secret uses the ASCII string value "12345678901234567890". With Time Step X = 30, and the Unix epoch as the initial value to count time steps, where T0 = 0, the TOTP algorithm will display the following values for specified modes and timestamps.

Time (sec)UTC TimeValue of T (hex)TOTPMode
591970-01-01 00:00:59000000000000000194287082SHA1
591970-01-01 00:00:59000000000000000146119246SHA256
591970-01-01 00:00:59000000000000000190693936SHA512
11111111092005-03-18 01:58:2900000000023523EC07081804SHA1
11111111092005-03-18 01:58:2900000000023523EC68084774SHA256
11111111092005-03-18 01:58:2900000000023523EC25091201SHA512
11111111112005-03-18 01:58:3100000000023523ED14050471SHA1
11111111112005-03-18 01:58:3100000000023523ED67062674SHA256
11111111112005-03-18 01:58:3100000000023523ED99943326SHA512
12345678902009-02-13 23:31:30000000000273EF0789005924SHA1
12345678902009-02-13 23:31:30000000000273EF0791819424SHA256
12345678902009-02-13 23:31:30000000000273EF0793441116SHA512
20000000002033-05-18 03:33:200000000003F940AA69279037SHA1
20000000002033-05-18 03:33:200000000003F940AA90698825SHA256
20000000002033-05-18 03:33:200000000003F940AA38618901SHA512
200000000002603-10-11 11:33:200000000027BC86AA65353130SHA1
200000000002603-10-11 11:33:200000000027BC86AA77737706SHA256
200000000002603-10-11 11:33:200000000027BC86AA47863826SHA512