P popeyes44 Member Apr 17, 2024 #1 Hi everybody, I work on an application that could generate 2FA temporary code from TOTP key. I have a severe issue to generate the 2FA code ! I tryed : - this link : application crash with error (com.warrenstrange.googleauth.GoogleAuthenticatorException: Could not initialise SecureRandom with the specified provider: Crypto. Another provider can be chosen setting the com.warrenstrange.googleauth.rng.algorithmProvider system property.) I suppose the "most easy" will be to integrate jotp (https://github.com/amdelamar/jotp) but i don't understand how to create the wrapper for that Maybe someone could help me to move forward on my project !? Have a nice day ! Nicolas
Hi everybody, I work on an application that could generate 2FA temporary code from TOTP key. I have a severe issue to generate the 2FA code ! I tryed : - this link : application crash with error (com.warrenstrange.googleauth.GoogleAuthenticatorException: Could not initialise SecureRandom with the specified provider: Crypto. Another provider can be chosen setting the com.warrenstrange.googleauth.rng.algorithmProvider system property.) I suppose the "most easy" will be to integrate jotp (https://github.com/amdelamar/jotp) but i don't understand how to create the wrapper for that Maybe someone could help me to move forward on my project !? Have a nice day ! Nicolas
W walt61 Well-Known Member Licensed User Longtime User Apr 17, 2024 #2 Searching the forum for 'SecureRandom' seems to point to the Encryption library (not: 'B4XEncryption') missing from your project (if that's the case indeed)? Upvote 0
Searching the forum for 'SecureRandom' seems to point to the Encryption library (not: 'B4XEncryption') missing from your project (if that's the case indeed)?
P popeyes44 Member Apr 17, 2024 #3 walt61 said: Searching the forum for 'SecureRandom' seems to point to the Encryption library (not: 'B4XEncryption') missing from your project (if that's the case indeed)? Click to expand... The issue is not to create the TOTP key but to generate the temp code. And I don't found anything usefull for the moment on the forum Upvote 0
walt61 said: Searching the forum for 'SecureRandom' seems to point to the Encryption library (not: 'B4XEncryption') missing from your project (if that's the case indeed)? Click to expand... The issue is not to create the TOTP key but to generate the temp code. And I don't found anything usefull for the moment on the forum