C# Class Jango_Desktop.Utilities.AESEncryption

Utility class that handles encryption Code from http://www.gutgames.com/post/AES-Encryption-in-C.aspx
Exibir arquivo Open project: SamPlusPlus/Jango-Desktop

Public Methods

Method Description
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

Method Details

Decrypt() public static method

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
return string

Encrypt() public static method

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
return string