C# Класс EfficientlyLazy.Crypto.CryptoManager

Static manager to wrap the specified ICryptoEngine.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CheckInitialization ( ) : void

Описание методов

Decrypt() публичный статический Метод

Decrypts the specified cipher text.
public static Decrypt ( byte cipherText ) : byte[]
cipherText byte The cipher text.
Результат byte[]

Decrypt() публичный статический Метод

Decrypts the specified cipher text.
public static Decrypt ( string cipherText ) : string
cipherText string The cipher text.
Результат string

Encrypt() публичный статический Метод

Encrypts the specified plain text.
public static Encrypt ( byte plaintext ) : byte[]
plaintext byte The plain text.
Результат byte[]

Encrypt() публичный статический Метод

Encrypts the specified plain text.
public static Encrypt ( string plaintext ) : string
plaintext string The plain text.
Результат string

GetSetting() публичный статический Метод

public static GetSetting ( string key ) : string
key string
Результат string

GetSqlConnectionString() публичный статический Метод

public static GetSqlConnectionString ( string key ) : SqlConnectionStringBuilder
key string
Результат SqlConnectionStringBuilder

Initialize() публичный статический Метод

Initializes the CryptoEngine to use.
public static Initialize ( ICryptoEngine engine ) : void
engine ICryptoEngine CryptoEngine to use
Результат void

Initialize() публичный статический Метод

Initializes the CryptoEngine to use.
public static Initialize ( this engine ) : void
engine this CryptoEngine to use
Результат void