private void tbDest_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { tbSrc.Text = AESUtil.AESDecrypt(tbDest.Text); } }
public void TestAESDecrypt() { string key = "706a344a66ff2e45"; string data = "Z6sZ75oV3Ekuy0XIB9ks5Q=="; string result = AESUtil.AESDecrypt(data, key); Assert.AreEqual("hello", result); }