Coder Profile - Show off your skills, get a coder profile.
 
 
 
code pin board Get md5 hash method Download Source Code
Author Details Code Information
shadytyrant ( Travus )

Pinned 5 Codes
Posted 5 Coding Articles

Send A Message
View Coders Profile
Language C# (C Sharp)
Expires Never
Length 507 Characters (19 Lines)
Password no password
Description

Simple md5 hash generator.
  1. using System.Security.Cryptography;
  2.  
  3. string GetMd5Hash(string inputString)
  4. {
  5.     MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
  6.  
  7.     byte[] byteString = Encoding.UTF8.GetBytes(inputString);
  8.     byteString = md5.ComputeHash(byteString);
  9.  
  10.     StringBuilder stringBuilder = new StringBuilder();
  11.  
  12.     foreach (byte b in byteString)
  13.     {
  14.         stringBuilder.Append(b.ToString("x2").ToLower());
  15.     }
  16.  
  17.     string hashString = stringBuilder.ToString();
  18.     return hashString;
  19. }
code pin board Back To Code Pin Board Post New Code
Please login to post comments.
Page 1 of 1
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved