SecureRandom.InstanceStrong Property

Definition

Returns a SecureRandom object.

public static Java.Security.SecureRandom? InstanceStrong { [Android.Runtime.Register("getInstanceStrong", "()Ljava/security/SecureRandom;", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getInstanceStrong", "()Ljava/security/SecureRandom;", "", ApiSince=26)>]
static member InstanceStrong : Java.Security.SecureRandom

Property Value

a strong SecureRandom implementation

Attributes

Remarks

Returns a SecureRandom object.

In Android this is equivalent to get a SHA1PRNG from AndroidOpenSSL.

Some situations require strong random values, such as when creating high-value/long-lived secrets like RSA public/private keys. To help guide applications in selecting a suitable strong SecureRandom implementation, Java distributions include a list of known strong SecureRandom implementations in the securerandom.strongAlgorithms Security property.

Every implementation of the Java platform is required to support at least one strong SecureRandom implementation.

Added in 1.8.

Java documentation for java.security.SecureRandom.getInstanceStrong().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to