CryptographyEncrypt(String, String, Boolean) Method |
public static Task<string> Encrypt( string plainText, string key, bool addSalt )
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.