Method | Description | |
---|---|---|
AESCryptographer ( IEnumerable |
Initializes a new instance of the AESCryptographer class.
|
|
Decrypt ( string input, bool &isLatestKey ) : string | ||
Encrypt ( string input ) : string | ||
TryDecrypt ( string inputString, string &decryptedString, bool &isLatestKey ) : bool |
Tries the decrypt the provided input string.
|
Method | Description | |
---|---|---|
AESCryptographer ( [ provider, IEnumerable |
||
ConvertHexStringToByteArray ( string hexString ) : byte[] | ||
DecryptStringFromBytes ( [ cipherText, [ key, [ initializationVector ) : string |
Decrypts the array of bytes into a string.
|
|
EncryptStringToBytes ( [ input, [ key, [ initializationVector ) : byte[] |
Encrypts the provided input string to an array of bytes.
|
|
TryDecryptStringFromBytes ( [ cipherText, [ key, [ initializationVector, string &decryptedString ) : bool |
Tries the decrypt the encrypted text with the key specified. This is used internally to find the correct key for decryption.
|
public AESCryptographer ( IEnumerable |
||
keys | IEnumerable |
The keys to add to this provider. |
return | System |
public Decrypt ( string input, bool &isLatestKey ) : string | ||
input | string | |
isLatestKey | bool | |
return | string |
public TryDecrypt ( string inputString, string &decryptedString, bool &isLatestKey ) : bool | ||
inputString | string | The string to decrypt. |
decryptedString | string |
/// |
isLatestKey | bool |
/// |
return | bool |