public static string Encrypt(byte[] input, byte[] key)
 {
     RC4a rc4a = new RC4a(key);
     return rc4a.EncryptAndEncode(input);
 }
Esempio n. 2
0
        public static string Encrypt(byte[] input, byte[] key)
        {
            RC4a rc4a = new RC4a(key);

            return(rc4a.EncryptAndEncode(input));
        }
 public static byte[] Decrypt(string encoded, byte[] key)
 {
     RC4a rc4a = new RC4a(key);
     return rc4a.DecodeAndDecrypt(encoded);
 }
Esempio n. 4
0
        public static byte[] Decrypt(string encoded, byte[] key)
        {
            RC4a rc4a = new RC4a(key);

            return(rc4a.DecodeAndDecrypt(encoded));
        }