public void 一般字串各種符號__byte加解密Test__成功(byte[] input) { byte[] original = input; DesCrypHelper DESTool = new DesCrypHelper(KeyProvider); byte[] encrypStr = DESTool.EncryptData(original); byte[] result = DESTool.DecryptData(encrypStr); Assert.AreEqual(result, original); }
public void 一般字串各種符號__字串加解密Test__成功(string input) { string original = input; DesCrypHelper DESTool = new DesCrypHelper(KeyProvider); string encrypStr = DESTool.EncryptData(original); string result = DESTool.DecryptData(encrypStr); Assert.AreEqual(result, original); }