By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,709 Members | 2,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,709 IT Pros & Developers. It's quick & easy.

Encrypt Password w/MD5

P: n/a
How would I encrypt a string using MD5?

--

Thank You,
Jason Williard


Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Something like:
string password = "somePassword"
Byte[] unencodedPassword = Encoding.Default.GetBytes(password);
Byte[] encodedPassword = MD5.Create().ComputeHash(unencodedPassword);
return BitConverter.ToString(encodedPassword);

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jason Williard" <ja********@gmail.com> wrote in message
news:rJccd.481877$8_6.77808@attbi_s04...
How would I encrypt a string using MD5?

--

Thank You,
Jason Williard

Nov 18 '05 #2

P: n/a
Take a look here...

http://msdn.microsoft.com/library/de...classtopic.asp

Regards,
Leon

"Jason Williard" wrote:
How would I encrypt a string using MD5?

--

Thank You,
Jason Williard


Nov 18 '05 #3

P: n/a
Here's an example:
http://www.aspnetpro.com/NewsletterA...200304so_l.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jason Williard" <ja********@gmail.com> wrote in message
news:rJccd.481877$8_6.77808@attbi_s04...
How would I encrypt a string using MD5?

--

Thank You,
Jason Williard

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.