C# Class EfficientlyLazy.Crypto.CryptoManager

Static manager to wrap the specified ICryptoEngine.
Mostra file Open project: jasonlaflair/EfficientlyLazy.Crypto

Public Methods

Method Description
Decrypt ( byte cipherText ) : byte[]

Decrypts the specified cipher text.

Decrypt ( string cipherText ) : string

Decrypts the specified cipher text.

Encrypt ( byte plaintext ) : byte[]

Encrypts the specified plain text.

Encrypt ( string plaintext ) : string

Encrypts the specified plain text.

GetSetting ( string key ) : string

GetSqlConnectionString ( string key ) : SqlConnectionStringBuilder

Initialize ( ICryptoEngine engine ) : void

Initializes the CryptoEngine to use.

Initialize ( this engine ) : void

Initializes the CryptoEngine to use.

Private Methods

Method Description
CheckInitialization ( ) : void

Method Details

Decrypt() public static method

Decrypts the specified cipher text.
public static Decrypt ( byte cipherText ) : byte[]
cipherText byte The cipher text.
return byte[]

Decrypt() public static method

Decrypts the specified cipher text.
public static Decrypt ( string cipherText ) : string
cipherText string The cipher text.
return string

Encrypt() public static method

Encrypts the specified plain text.
public static Encrypt ( byte plaintext ) : byte[]
plaintext byte The plain text.
return byte[]

Encrypt() public static method

Encrypts the specified plain text.
public static Encrypt ( string plaintext ) : string
plaintext string The plain text.
return string

GetSetting() public static method

public static GetSetting ( string key ) : string
key string
return string

GetSqlConnectionString() public static method

public static GetSqlConnectionString ( string key ) : SqlConnectionStringBuilder
key string
return SqlConnectionStringBuilder

Initialize() public static method

Initializes the CryptoEngine to use.
public static Initialize ( ICryptoEngine engine ) : void
engine ICryptoEngine CryptoEngine to use
return void

Initialize() public static method

Initializes the CryptoEngine to use.
public static Initialize ( this engine ) : void
engine this CryptoEngine to use
return void