C# Class Evbpc.Framework.Utilities.Cryptography.AesCrypto

Provides Cryptography methods based on AES cryptography implementation.
Inheritance: IDisposable
Afficher le fichier Open project: EBrown8534/Framework

Méthodes publiques

Méthode Description
AesCrypto ( string passphrase, byte salt ) : System

Constructs a new instance of AesCrypto from the specified values.

AesDecrypt ( string cipherText, bool throwExceptions ) : string

Uses AES encryption to decrypt a string of data.

AesEncrypt ( string clearText ) : string

Uses AES encryption to encrypt a string of data.

Dispose ( ) : void

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

AesCrypto() public méthode

Constructs a new instance of AesCrypto from the specified values.
public AesCrypto ( string passphrase, byte salt ) : System
passphrase string The used in encryption.
salt byte The used in encryption.
Résultat System

AesDecrypt() public méthode

Uses AES encryption to decrypt a string of data.
public AesDecrypt ( string cipherText, bool throwExceptions ) : string
cipherText string The encrypted Base64 string to decrypt.
throwExceptions bool If true, will throw exceptions on decryption failure. Else, returns null string on decryption failure.
Résultat string

AesEncrypt() public méthode

Uses AES encryption to encrypt a string of data.
public AesEncrypt ( string clearText ) : string
clearText string The data to encrypt. Data is expected to be Unicode.
Résultat string

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void