C# Class EfficientlyLazy.Crypto.CryptoManager

Static manager to wrap the specified ICryptoEngine.
Afficher le fichier Open project: jasonlaflair/EfficientlyLazy.Crypto

Méthodes publiques

Méthode 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

Méthode Description
CheckInitialization ( ) : void

Method Details

Decrypt() public static méthode

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

Decrypt() public static méthode

Decrypts the specified cipher text.
public static Decrypt ( string cipherText ) : string
cipherText string The cipher text.
Résultat string

Encrypt() public static méthode

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

Encrypt() public static méthode

Encrypts the specified plain text.
public static Encrypt ( string plaintext ) : string
plaintext string The plain text.
Résultat string

GetSetting() public static méthode

public static GetSetting ( string key ) : string
key string
Résultat string

GetSqlConnectionString() public static méthode

public static GetSqlConnectionString ( string key ) : SqlConnectionStringBuilder
key string
Résultat SqlConnectionStringBuilder

Initialize() public static méthode

Initializes the CryptoEngine to use.
public static Initialize ( ICryptoEngine engine ) : void
engine ICryptoEngine CryptoEngine to use
Résultat void

Initialize() public static méthode

Initializes the CryptoEngine to use.
public static Initialize ( this engine ) : void
engine this CryptoEngine to use
Résultat void