Property | Type | Description | |
---|---|---|---|
crySalt | byte[] | ||
crySecret | string |
Method | Description | |
---|---|---|
DecryptStringAES ( string cipherText ) : string |
Decrypt the given string. Assumes the string was encrypted using EncryptStringAES(), using an identical sharedSecret.
|
|
EncryptStringAES ( string plainText ) : string |
Encrypt the given string using AES. The string can be decrypted using DecryptStringAES(). The sharedSecret parameters must match.
|
Method | Description | |
---|---|---|
ReadByteArray ( Stream s ) : byte[] |
Reads barr from stream
|
public static DecryptStringAES ( string cipherText ) : string | ||
cipherText | string | The text to decrypt. |
return | string |
public static EncryptStringAES ( string plainText ) : string | ||
plainText | string | The text to encrypt. |
return | string |