메소드 | 설명 | |
---|---|---|
Decrypt ( string cipherText, string sharedSecret ) : string |
Decrypt the given string. Assumes the string was encrypted using EncryptStringAES(), using an identical sharedSecret.
|
|
Encrypt ( string plainText, string sharedSecret ) : string |
Encrypt the given string using AES. The string can be decrypted using DecryptStringAES(). The sharedSecret parameters must match.
|
메소드 | 설명 | |
---|---|---|
ReadByteArray ( Stream s ) : byte[] |
public static Decrypt ( string cipherText, string sharedSecret ) : string | ||
cipherText | string | The text to decrypt. |
sharedSecret | string | A password used to generate a key for decryption. |
리턴 | string |
public static Encrypt ( string plainText, string sharedSecret ) : string | ||
plainText | string | The text to encrypt. |
sharedSecret | string | A password used to generate a key for encryption. |
리턴 | string |