public static ArrayByte CryptData(string key, ArrayByte value) { try { ARC4 rc4 = new ARC4(key); return(rc4.GetCrypt(value)); } catch (Throwable) { return(value); } }
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())); } }