public void DesDecrypt_VeryLongKey_Test() { var text = "abc"; var key = "11111111111111111111111111111111111111111111111111111111111111111111111111111111111111"; var encoded = DesHelper.DesEncrypt(text.ToBytes(), key.ToBytes(), new byte[0]); var decoded = DesHelper.DesDecrypt(encoded, key.ToBytes(), new byte[0]); Assert.AreEqual(text, decoded.GetString()); }