C# Класс Common.Cryptography.AES

AES is a symmetric 256-bit encryption algorthm. Read more: http://en.wikipedia.org/wiki/Advanced_Encryption_Standard
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AES ( ) : System
Decrypt ( byte cipherTextBytes, string password = null, string salt = null, string initialVector = null ) : string

Decrypts an AES-encrypted string.

Decrypt ( string cipherText, string password = null, string salt = null, string initialVector = null ) : string

Decrypts an AES-encrypted string.

Encrypt ( string plainText, string password = null, string salt = null, string initialVector = null ) : string

Encrypts a string with AES

EncryptToBytes ( byte plainTextBytes, string password = null, string salt = null, string initialVector = null ) : byte[]

Encrypts a string with AES

EncryptToBytes ( string plainText, string password = null, string salt = null, string initialVector = null ) : byte[]

Encrypts a string with AES

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

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

public AES ( ) : System
Результат System

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

Decrypts an AES-encrypted string.
public Decrypt ( byte cipherTextBytes, string password = null, string salt = null, string initialVector = null ) : string
cipherTextBytes byte
password string Password to decrypt with
salt string Salt to decrypt with
initialVector string Needs to be 16 ASCII characters long
Результат string

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

Decrypts an AES-encrypted string.
public Decrypt ( string cipherText, string password = null, string salt = null, string initialVector = null ) : string
cipherText string Text to be decrypted
password string Password to decrypt with
salt string Salt to decrypt with
initialVector string Needs to be 16 ASCII characters long
Результат string

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

Encrypts a string with AES
public Encrypt ( string plainText, string password = null, string salt = null, string initialVector = null ) : string
plainText string Text to be encrypted
password string Password to encrypt with
salt string Salt to encrypt with
initialVector string Needs to be 16 ASCII characters long
Результат string

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

Encrypts a string with AES
public EncryptToBytes ( byte plainTextBytes, string password = null, string salt = null, string initialVector = null ) : byte[]
plainTextBytes byte Bytes to be encrypted
password string Password to encrypt with
salt string Salt to encrypt with
initialVector string Needs to be 16 ASCII characters long
Результат byte[]

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

Encrypts a string with AES
public EncryptToBytes ( string plainText, string password = null, string salt = null, string initialVector = null ) : byte[]
plainText string Text to be encrypted
password string Password to encrypt with
salt string Salt to encrypt with
initialVector string Needs to be 16 ASCII characters long
Результат byte[]