What algorithm does 2FA use?

My 2FA app doesn’t recognize Discourse, and I need to input the data myself before I can add the code. What algorithm is the 2FA? Is it HMAC SHA 1?

Yes. The equivalent oathtool command is

oathtool --totp -b «TOTPCODESTRING»

What are you using that it doesn’t recognise Discourse (presumably, it doesn’t recognise the QR code)?

Does it work with this?

image

3 Likes