C# Класс Jango_Desktop.Utilities.AESEncryption

Utility class that handles encryption Code from http://www.gutgames.com/post/AES-Encryption-in-C.aspx
Показать файл Открыть проект

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

Метод Описание
Decrypt ( string CipherText, string Password, string Salt, string HashAlgorithm, int PasswordIterations, string InitialVector, int KeySize ) : string

Decrypts a string

Encrypt ( string PlainText, string Password, string Salt, string HashAlgorithm, int PasswordIterations, string InitialVector, int KeySize ) : string

Encrypts a string

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

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

Decrypts a string
public static Decrypt ( string CipherText, string Password, string Salt, string HashAlgorithm, int PasswordIterations, string InitialVector, int KeySize ) : string
CipherText string Text to be decrypted
Password string Password to decrypt with
Salt string Salt to decrypt with
HashAlgorithm string Can be either SHA1 or MD5
PasswordIterations int Number of iterations to do
InitialVector string Needs to be 16 ASCII characters long
KeySize int Can be 128, 192, or 256
Результат string

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

Encrypts a string
public static Encrypt ( string PlainText, string Password, string Salt, string HashAlgorithm, int PasswordIterations, string InitialVector, int KeySize ) : string
PlainText string Text to be encrypted
Password string Password to encrypt with
Salt string Salt to encrypt with
HashAlgorithm string Can be either SHA1 or MD5
PasswordIterations int Number of iterations to do
InitialVector string Needs to be 16 ASCII characters long
KeySize int Can be 128, 192, or 256
Результат string