wstrange / GoogleAuth

Google Authenticator Server side code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error Android: Could not initialise SecureRandom with the specified provider: SUN.

stefanodelbosco opened this issue · comments

Could not initialise SecureRandom with the specified provider: SUN.
Another provider can be chosen setting the com.warrenstrange.googleauth.rng.algorithmProvider system property.

Can you help me?

Gradle:
compile 'com.warrenstrange:googleauth:1.1.5' //Google Auth

The provider can be overridden by setting the specified property. Unfortunately this library does not support and is not tested on Android. I'm not even sure what the proper course of action would be in Android. Intuitively, the process that uses the library would set that variable with a call to System.setProperty() (https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#setProperty(java.lang.String,%20java.lang.String)) before using the library.

@emcrisostomo Could you please help with to what (key, value) the system property should be set for android?
SUN and IBMJCE are not working. From where can I get the list for providers