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

Inheritance: CryptographyHelperBase
Afficher le fichier Open project: nHydrate/nHydrate

Protected Properties

Свойство Type Description
algorithmId CryptographyAlgorithm
entropy string

Méthodes publiques

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

Private Methods

Méthode Description
GetCryptoAlgorithm ( ) : void
GetKey ( byte salt ) : byte[]
GetSalt ( ) : byte[]

Method Details

Decrypt() public méthode

public Decrypt ( byte cipherText ) : byte[]
cipherText byte
Résultat byte[]

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Encrypt() public méthode

public Encrypt ( byte plaintext ) : byte[]
plaintext byte
Résultat byte[]

SymmetricCryptographyHelper() public méthode

public SymmetricCryptographyHelper ( CryptographyAlgorithm algId ) : System
algId CryptographyAlgorithm
Résultat System

SymmetricCryptographyHelper() public méthode

public SymmetricCryptographyHelper ( CryptographyAlgorithm algId, string password ) : System
algId CryptographyAlgorithm
password string
Résultat System

Property Details

algorithmId protected_oe property

protected CryptographyAlgorithm algorithmId
Résultat CryptographyAlgorithm

entropy protected_oe property

protected string entropy
Résultat string