Listing All Available Secure Random Number Generators

A secure random number generator can seed itself with unpredictable values and produce cryptographically strong pseudo-random numbers suitable for generating cryptographic keys.

Retrieving the list of available secure random number generators requires checking the services provided by all registered providers. The retrieved list of names can be used in creating a SecureRandom object.

// This method is implemented in Listing All Available Cryptographic Services String[] names = getCryptoImpls("SecureRandom");
An example of the output:
SHA1PRNG

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.