Beispiel #1
0
 public static string Encrypt(string Key, string Data)
 {
     RC4Engine.EncryptionKey = Key;
     return(Encoding.ASCII.GetString(RC4Engine.Encrypt(Encoding.ASCII.GetBytes(Data))));
 }
Beispiel #2
0
 public static string Decrypt(string Key, string Data)
 {
     return(RC4Engine.Encrypt(Key, Data));
 }
Beispiel #3
0
 public static byte[] Decrypt(byte[] data)
 {
     return(RC4Engine.Encrypt(data));
 }