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

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

            return(encryption.Decrypt(encrypted));
        }