public static string Decrypt(string encrypted)
 {
     EncryptDecrypt ed = new EncryptDecrypt();
     var encoder = new ASCIIEncoding();
     return encoder.GetString(ed.Decrypt(Convert.FromBase64String(encrypted)));
 }
 public static string Encrypt(string unencrypted)
 {
     EncryptDecrypt ed = new EncryptDecrypt();
     var encoder = new ASCIIEncoding();
     return Convert.ToBase64String(ed.Encrypt(encoder.GetBytes(unencrypted)));
 }