Does BouncyCastle have a SecureRandom service?

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

+5
2

, Android ( ). Bouncy Castle SecureRandom. "Crypto" - Apache Harmony ( Java- Android JCE-). Android Sun JCE. BTW, "Crypto" SHA1PRNG (RNG), SHA-1 () SHA1 DSA (). Bouncy Castle, OpenSSL.

: , , SecureRandom Bouncy/Spongy Castle?

+3

Bouncy Castle Pseudo (PRNG). PRNG; NIST (DRBG). "" API Bouncy Castle, org.bouncycastle.crypto.prng.

, Bouncy Castle - . , . , . , Bouncy Castle "BC" ( Spongy provider for Android), , SecureRandom.

, , , Bouncy .

(v1.54) Bouncy Castle SecureRandom , .

+2
source

All Articles