C# Класс Evbpc.Framework.Utilities.Cryptography.AesCrypto

Provides Cryptography methods based on AES cryptography implementation.
Наследование: IDisposable
Показать файл Открыть проект

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

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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

AesCrypto() публичный Метод

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.
Результат System

AesDecrypt() публичный Метод

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.
Результат string

AesEncrypt() публичный Метод

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.
Результат string

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void