public string Decrypt(string input) { StreamWriter ms = new StreamWriter(new MemoryStream()); DecryptAsync(ms, input.ConvertToStream()).Wait(); return(ms.ConvertStringAndClose()); }
public static string Encrypt(string input, int key) { StreamWriter sw = new StreamWriter(new MemoryStream()); Encrypt(sw, input.ConvertToStream(), key); return(sw.ConvertStringAndClose()); }