C# Class WebApplications.Utilities.Cryptography.RandomCryptographyProvider

Inheritance: CryptographyProvider
Mostrar archivo Open project: webappsuk/CoreLibraries Class Usage Examples

Public Methods

Method Description
GetDecryptor ( ) : ICryptoTransform
GetEncryptor ( ) : ICryptoTransform

Protected Methods

Method Description
RandomCryptographyProvider ( [ name, [ configuration ) : System

Initializes a new instance of the RandomCryptographyProvider class.

Private Methods

Method Description
Create ( [ name, [ algorithm, System.Xml.Linq.XElement configurationElement ) : RandomCryptographyProvider

Creates a CryptographyProvider from a RandomNumberGenerator.

EncryptBlock ( [ algorithm, [ inputBuffer, int inputOffset, int inputCount, [ outputBuffer, int outputOffset ) : int

Encrypts the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.

EncryptFinalBlock ( [ algorithm, [ inputBuffer, int inputOffset, int inputCount ) : byte[]

Encrypts the specified region of the specified byte array.

GetAlgorithm ( ) : RandomNumberGenerator
GetBytes ( int count ) : byte[]
GetBytes ( [ data ) : void
GetNonZeroBytes ( int count ) : byte[]
GetNonZeroBytes ( [ data ) : void
GetNonZeroRandomBytes ( int count ) : byte[]
GetNonZeroRandomBytes ( [ data ) : void
GetRandomBytes ( int count ) : byte[]
GetRandomBytes ( [ data ) : void

Method Details

GetDecryptor() public method

public GetDecryptor ( ) : ICryptoTransform
return ICryptoTransform

GetEncryptor() public method

public GetEncryptor ( ) : ICryptoTransform
return ICryptoTransform

RandomCryptographyProvider() protected method

Initializes a new instance of the RandomCryptographyProvider class.
protected RandomCryptographyProvider ( [ name, [ configuration ) : System
name [ The name.
configuration [ The configuration.
return System