Method | Description | |
---|---|---|
Decrypt ( this data, |
Decrypts a string
|
|
Decrypt ( this data, string key, |
Decrypts a string
|
|
Encrypt ( this data, |
Encrypts a byte array
|
|
Encrypt ( this data, string key, |
Encrypts a string
|
Method | Description | |
---|---|---|
Decrypt ( this data, |
||
Decrypt ( this data, string key, |
||
Encrypt ( this data, |
||
Encrypt ( this data, string key, |
public static Decrypt ( this data, |
||
data | this | Text to be decrypted (Base 64 string) |
key | Key to use to encrypt the data (can use PasswordDeriveBytes, Rfc2898DeriveBytes, etc. Really anything that implements DeriveBytes) | |
encodingUsing | Encoding that the output string should use (defaults to UTF8) | |
algorithmUsing | Algorithm to use for decryption (defaults to AES) | |
initialVector | string | Needs to be 16 ASCII characters long |
keySize | int | Can be 64 (DES only), 128 (AES), 192 (AES and Triple DES), or 256 (AES) |
return | string |
public static Decrypt ( this data, string key, |
||
data | this | Text to be decrypted (Base 64 string) |
key | string | Password to decrypt with |
encodingUsing | Encoding that the output string should use (defaults to UTF8) | |
algorithmUsing | Algorithm to use for decryption (defaults to AES) | |
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 64 (DES only), 128 (AES), 192 (AES and Triple DES), or 256 (AES) |
return | string |
public static Encrypt ( this data, |
||
data | this | Data to encrypt |
key | Key to use to encrypt the data (can use PasswordDeriveBytes, Rfc2898DeriveBytes, etc. Really anything that implements DeriveBytes) | |
encodingUsing | Encoding that the original string is using (defaults to UTF8) | |
algorithmUsing | Algorithm to use for encryption (defaults to AES) | |
initialVector | string | Needs to be 16 ASCII characters long |
keySize | int | Can be 64 (DES only), 128 (AES), 192 (AES and Triple DES), or 256 (AES) |
return | string |
public static Encrypt ( this data, string key, |
||
data | this | Text to be encrypted |
key | string | Password to encrypt with |
encodingUsing | Encoding that the original string is using (defaults to UTF8) | |
algorithmUsing | Algorithm to use for encryption (defaults to AES) | |
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 64 (DES only), 128 (AES), 192 (AES and Triple DES), or 256 (AES) |
return | string |