public static Task<string> EncryptAsync(
string plainText,
string key
)
Adapted from work by Frank Fong and William Rawls of the Code Project.
The plain text must be at least 0 and no more than MaxPlaintextLength; the key length must be at least MinKeyLength and no more than MaxKeyLength.