Beispiel #1
0
        public string Decrypt(string input)
        {
            StreamWriter ms = new StreamWriter(new MemoryStream());

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

            Encrypt(sw, input.ConvertToStream(), key);
            return(sw.ConvertStringAndClose());
        }