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

Provides Cryptography methods based on AES cryptography implementation.
Inheritance: IDisposable
Show file Open project: EBrown8534/Framework

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

AesCrypto() public method

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.
return System

AesDecrypt() public method

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.
return string

AesEncrypt() public method

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.
return string

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void