Pages:
Author

Topic: Generate Google Authenticator OTPs with a TI89? - page 2. (Read 5683 times)

legendary
Activity: 1498
Merit: 1000
The programs are written in http://en.wikipedia.org/wiki/TI-BASIC so you need to find a programmer for that language. BUT you do want a device that has a good track of time, and I don't even know if a TI-89 can keep track of time let alone if it is the wrong time it would be completely wrong and the you will never get the correct number to enter.
hero member
Activity: 728
Merit: 500
Is this a dumb or uninteresting question? I just want a device that never goes online to generate my OTPs.
hero member
Activity: 728
Merit: 500
Psuedocode from wikipedia:
Code:
function GoogleAuthenticatorCode(string secret)
     key := base32decode(secret)
     message := current Unix time ÷ 30
     hash := HMAC-SHA1(key, message)
     offset := last nibble of hash
     truncatedHash := hash[offset..offset+4]  //4 bytes starting at the offset
     Set the first bit of truncatedHash to zero  //remove the most significat bit
     code := truncatedHash mod 1000000
     pad code with 0 until length of code is 6
     return code

Would it be possible to write a program that generates google authenticator OTPs on a TI89? Would it be too difficult to sync the time? Would it take too long to generate the OTP?
Pages:
Jump to: