コード例 #1
0
        public void CreateMd5Hash()
        {
            var password = Encoding.UTF8.GetBytes("password");
            var hash     = _cryptographyProvider.CreateMD5(password);

            hash.Should().NotBeNull("because MD5 needs to be generated");
            var stringHash = BitConverter.ToString(hash).Replace("-", string.Empty);

            stringHash.Should().Be("5F4DCC3B5AA765D61D8327DEB882CF99");
        }