public static byte[] Encrypt(byte[] origin, string key) { DesEncryption encryption = new DesEncryption(global::CJBasic.Security.DesStrategy.Des3, key); return(encryption.Encrypt(origin)); }
public static byte[] Decrypt(byte[] encrypted, string key) { DesEncryption encryption = new DesEncryption(global::CJBasic.Security.DesStrategy.Des3, key); return(encryption.Decrypt(encrypted)); }