public static Task<string> DecryptAsync(
string cipherText,
string key,
SymmetricAlgorithm provider
)
The default decryption algorithm is DES. Any other class derived from SymmetricAlgorithm can be used instead.
Adapted from work by Frank Fong and William Rawls of the Code Project.
The cipher text can be any length other than 0; the key length must be at least MinKeyLength and no more than MaxKeyLength.
ArgumentException | cipherText is null or Empty |
ArgumentNullException | provider is null |