Click or drag to resize

RNGCryptoServiceProvider Class

Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP). This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CryptographyRandomNumberGenerator
    Crestron.SimplSharp.CryptographyRNGCryptoServiceProvider

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public sealed class RNGCryptoServiceProvider : RandomNumberGenerator

The RNGCryptoServiceProvider type exposes the following members.

Constructors
 NameDescription
Public methodRNGCryptoServiceProvider Initializes a new instance of the Crestron.SimplSharp.Cryptography.RNGCryptoServiceProvider class.
Public methodRNGCryptoServiceProvider(Byte) Initializes a new instance of the Crestron.SimplSharp.Cryptography.RNGCryptoServiceProvider class.
Public methodRNGCryptoServiceProvider(CspParameters) Initializes a new instance of the Crestron.SimplSharp.Cryptography.RNGCryptoServiceProvider class with the specified parameters.
Public methodRNGCryptoServiceProvider(String) Initializes a new instance of the Crestron.SimplSharp.Cryptography.RNGCryptoServiceProvider class.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetBytes Fills an array of bytes with a cryptographically strong sequence of random values.
(Overrides RandomNumberGeneratorGetBytes(Byte))
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetNonZeroBytes Fills an array of bytes with a cryptographically strong sequence of random nonzero values.
(Overrides RandomNumberGeneratorGetNonZeroBytes(Byte))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also