public static string Decrypt(this string cipherText, string key) { var r = new RijndaelEnhanced(key); return(r.Decrypt(cipherText)); }
public static string Encrypt(this string plainText, string key) { var r = new RijndaelEnhanced(key); return(r.Encrypt(plainText)); }