Converting a md5 hash byte array to a string

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2010-03-12T20:35:43Z Indexed on 2010/03/12 20:37 UTC
Read the original article Hit count: 491

Filed under:
|
|
|

How can I convert the hashed result, which a byte array, to a string?

byte[] bytePassword = Encoding.UTF8.GetBytes(password);


            using (MD5 md5 = MD5.Create())
            {
                byte[] byteHashedPassword = md5.ComputeHash(bytePassword);
            }  

So I need to convert byteHashedPassword to a string

© Stack Overflow or respective owner

Related posts about c#

Related posts about encryption