two-factor-auth
two-factor-auth copied to clipboard
Two Factor Authentication Java code implementing the Time-based One-time Password Algorithm
i have implemented this code in my android application qr generation and scanning is okay but i am unable to validate code generated but google authenticator app validateCurrentNumber() function always...
Added instruction to resolve "package com.j256.twofactorauth is declared in the unnamed module, but module xxxxx does not read it". Sorry if this is a duplicate. This is my first PR.
When using `generateOtpAuthUrl()`, the contents are already url-encoded as that would fit for the `chl` query parameter of the `qrImageUrl()`. This way the plain URL is not usable, though. As...
Use `https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=` + `generateOtpAuthUrl()` instead of `qrImageUrl()`