コード例 #1
0
        public void Encrypt_red_bytes()
        {
            // arrange
            var bytes = "AB".ToByteArrayFromHex();

            // act
            var encrypted = _crypto.Encrypt(bytes);
            var decrypted = _crypto.DecryptAsBytes(encrypted);

            // assert
            var asHex = decrypted.ToHex();

            asHex
            .Should()
            .Be("AB");
            encrypted
            .Should()
            .NotBe("AB",
                   "Crypto?");
        }