Property | Type | Description | |
---|---|---|---|
SaltSize | int |
Method | Description | |
---|---|---|
Decrypt ( string ciphertext, string key ) : string |
Decrypts the ciphertext using the Key.
|
|
Encrypt ( string plainText, string key ) : string |
Encrypts the plainText input using the given Key. A 128 bit random salt will be generated and prepended to the ciphertext before it is base64 encoded.
|
|
GetPassword ( int length = 44 ) : string |
random string builder
|
public static Decrypt ( string ciphertext, string key ) : string | ||
ciphertext | string | The ciphertext to decrypt. |
key | string | The plain text encryption key. |
return | string |
public static Encrypt ( string plainText, string key ) : string | ||
plainText | string | The plain text to encrypt. |
key | string | The plain text encryption key. |
return | string |
public static GetPassword ( int length = 44 ) : string | ||
length | int | |
return | string |