Comments (6)
Hi @rhussel,
The library currently gets a SecureRandom
instance using the SecureRandom#getInstance
method and specifying the SHA1PRNG
algorithm and the SUN
provider. So, the system you are using has no access to this implementation. What is it, out of curiosity?
However, the non-overridability of the provider and algorithm the library is using is an outstanding issue I'm aware of.
I'm renaming this issue for clarity's sake and leave it open until this one is resolved.
from googleauth.
You should now be able to override the random number generator algorithm and provider using the latest release (v. 0.5.0) which has already been published on the Sonatype's Central Repository. Please, check out its documentation to see how to do it.
from googleauth.
hi @emcrisostomo, we can use SUN provider even when we run openjdk right? Any idea when this would fail? (or when SUN provider will not be available?)
from googleauth.
Hey, how did you solve the problem? Can you please share?
from googleauth.
Hi @motcwang, yes the problem is solved and yes, I can share. I'm quoting myself a couple of posts ago:
You should now be able to override the random number generator algorithm and provider using the latest release (v. 0.5.0) which has already been published on the Sonatype's Central Repository. Please, check out its documentation to see how to do it.
Did you check the documentation? Hint: Section 3.1, Random Number Generator Algorithm and Provider.
from googleauth.
List secure rendom providers list using
Provider[] secureRandomProviders = Security.getProviders("SecureRandom.SHA1PRNG");
You can get name of provider (if any) using
secureRandomProviders[0].getName();
from googleauth.
Related Issues (20)
- candleData method error HOT 1
- Unable to pass OTP starting with number 0 HOT 1
- OTP starting with 0 is not working HOT 1
- Unable to authorize codes that have a leading zero HOT 1
- How to fix the length of the TOTP ? HOT 3
- Setting valid time to OTP
- Setting timeout to passcode HOT 2
- Replacement for Google Charts usage HOT 4
- Get time remaining HOT 1
- More than one file was found with OS independent path 'META-INF/DEPENDENCIES' HOT 1
- Can not authorize with scratch code. HOT 3
- Does this code have C# (.net) language implementation? HOT 1
- Use JDK (8+) Base32/64 codecs instead of apache commons HOT 3
- Use of api.qrcode.com
- Generate a code which will be valid for the next 30 seconds HOT 1
- Library gives true even previous otp is changed in GAuth app HOT 2
- Is there a way to generate scratch codes? Readme.md and manual PDF doesn't say how. HOT 1
- Import OTP Secrets from mobile GoogleAuthenticator? HOT 2
- How does the scratch code work?
- QR codes not recognized by Google Authenticator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googleauth.