예제 #1
0
파일: ARC4.cs 프로젝트: zhangxin8105/LGame
 public static ArrayByte CryptData(string key, ArrayByte value)
 {
     try
     {
         ARC4 rc4 = new ARC4(key);
         return(rc4.GetCrypt(value));
     }
     catch (Throwable)
     {
         return(value);
     }
 }
예제 #2
0
파일: ARC4.cs 프로젝트: zhangxin8105/LGame
 public static ArrayByte CryptData(string key, string value)
 {
     try
     {
         ARC4 rc4 = new ARC4(key);
         return(rc4.GetCrypt(value.GetBytes(LSystem.ENCODING)));
     }
     catch (Throwable)
     {
         return(new ArrayByte(value.GetBytes()));
     }
 }