Ejemplo n.º 1
0
 public static byte[] Encrypt(int seed, string msg, bool compress = false)
 {
     if (string.IsNullOrEmpty(msg))
     {
         return((byte[])null);
     }
     byte[] bytes = Encoding.UTF8.GetBytes(msg);
     GUtility.Encrypt(bytes, bytes.Length);
     return(bytes);
 }
Ejemplo n.º 2
0
 private byte[] Encrypt(int seed, string src)
 {
     if (string.IsNullOrEmpty(src))
     {
         return((byte[])null);
     }
     byte[] bytes = Encoding.UTF8.GetBytes(src);
     GUtility.Encrypt(bytes, bytes.Length);
     return(bytes);
 }
Ejemplo n.º 3
0
 public static byte[] Encrypt(byte[] msg)
 {
     if (msg == null)
     {
         return((byte[])null);
     }
     byte[] numArray = new byte[msg.Length];
     Array.Copy((Array)msg, (Array)numArray, msg.Length);
     GUtility.Encrypt(numArray, numArray.Length);
     return(numArray);
 }