Exemple #1
0
        public static byte[] Encrypt(byte[] origin, string key)
        {
            DesEncryption encryption = new DesEncryption(global::CJBasic.Security.DesStrategy.Des3, key);

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

            return(encryption.Decrypt(encrypted));
        }