speakeasyjs / speakeasy

**NOT MAINTAINED** Two-factor authentication for Node.js. One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.
MIT License
2.7k stars 228 forks source link

Android and iPhone create qrcode is different. #116

Closed Leekyungun closed 3 years ago

Leekyungun commented 6 years ago

Hi, I use the spakeasy module to generate the opt.

image

I found a different QR code on Android and iPhone.

Android ignores algorithm options and makes QR code The iPhone uses an algorithm option to create QR code.

image

So even during verification, Android has no algorithm option. The iPhone should have an algorithm option.

If authentication fails once more, I am adding an algorithm option to proceed with authentication once more. But I think there is another way. In the other issue, Androids should use sha1. But isn't using sa1 vulnerable to security?

Last I would like to know the recommended length from the generateSecret. Security is an important project. Please refer.

Thank you~!

Leekyungun commented 6 years ago

@markbao Can you help me?