C# Class nHydrate.Generator.Common.Util.SymmetricCryptographyHelper

Inheritance: CryptographyHelperBase
Mostrar archivo Open project: nHydrate/nHydrate

Protected Properties

Property Type Description
algorithmId CryptographyAlgorithm
entropy string

Public Methods

Method Description
Decrypt ( byte cipherText ) : byte[]
Dispose ( ) : void
Encrypt ( byte plaintext ) : byte[]
SymmetricCryptographyHelper ( CryptographyAlgorithm algId ) : System
SymmetricCryptographyHelper ( CryptographyAlgorithm algId, string password ) : System

Private Methods

Method Description
GetCryptoAlgorithm ( ) : void
GetKey ( byte salt ) : byte[]
GetSalt ( ) : byte[]

Method Details

Decrypt() public method

public Decrypt ( byte cipherText ) : byte[]
cipherText byte
return byte[]

Dispose() public method

public Dispose ( ) : void
return void

Encrypt() public method

public Encrypt ( byte plaintext ) : byte[]
plaintext byte
return byte[]

SymmetricCryptographyHelper() public method

public SymmetricCryptographyHelper ( CryptographyAlgorithm algId ) : System
algId CryptographyAlgorithm
return System

SymmetricCryptographyHelper() public method

public SymmetricCryptographyHelper ( CryptographyAlgorithm algId, string password ) : System
algId CryptographyAlgorithm
password string
return System

Property Details

algorithmId protected_oe property

protected CryptographyAlgorithm algorithmId
return CryptographyAlgorithm

entropy protected_oe property

protected string entropy
return string