I am trying to create cryptographically secure random numbers using Java and using the following code section to create a SecureRandom object to view its provider and algorithm:
Provider prov=new org.spongycastle.jce.provider.BouncyCastleProvider();
Security.insertProviderAt(prov, 1);
SecureRandom sr=new SecureRandom();
srProvider=sr.getProvider().toString();
srAlgorithm=sr.getAlgorithm();
(a sponge castle is a cool equivalent of an android lock made by Roberto Tiley - https://github.com/rtyley )
When I show the provider and the algorithm, it shows: Crypto version 1.0 SHA1PRNG
What surprises me is that the provider is not Spongycastle, even if it is installed as the first provider in the code. I would like to ask you: a) Is SecureRandom included in Spongy Castle (or Bouncy Castle)? b) What is "Crypto version 1.0" (I mean, is it a Sun JCE provider or what?)
Thank...
Rubi