Ejemplo n.º 1
0
        public void TestDes()
        {
            String skey = "1234567890123456";
            //string ddd = Convert.ToBase64String(Encoding.UTF8.GetBytes("1231313"));
            string dd = CryptUtil.EncryptDes("15611802686", skey);
            string cc = CryptUtil.DecryptDes("SWRjRMW1EH6SiDtUq2Pj+4Mtscup+IFzsu4aj4REJZ9cgSI0zD4kEQ==", skey);

            Assert.AreEqual("Z4bEu0glHasENUzgYotuiw==", dd);
        }