Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java 8 SecureRandom.getInstanceStrong Sources

The documentation for SecureRandom.getInstanceStrong() says that it returns a pRNG instance from the securerandom.strongAlgorithms java.security.Security property.

Is there Java documentation that lists these properties by platform?

like image 200
statueofmike Avatar asked Oct 19 '25 08:10

statueofmike


1 Answers

Apparently not, you should expect such information here, but it just lists the algorithms without splitting them up per OS.

You can however print the list from your local JRE with

java.security.Security.getProperty( "securerandom.strongAlgorithms" )

For example, my Windows 7 machine returns the algorithms:

Windows-PRNG:SunMSCAPI
SHA1PRNG:SUN

While a Linux platform will return

NativePRNGBlocking:SUN

which will normally result in random values read from /dev/random as per documentation.

like image 171
statueofmike Avatar answered Oct 20 '25 22:10

statueofmike