Exemple #1
0
        public static void Encode(string input, string expected)
        {
            var bytes  = Encoding.UTF8.GetBytes(input);
            var base16 = new char[Base16.GetEncodedLength(bytes.Length)];

            Base16.Encode(bytes, base16);
            Assert.Equal(expected, new string(base16));
        }