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