String MD5encryption Class

 

 

 

 

 

 

 

 

public

 

 

class

buildhash

{

 

 



 

public

System.Text.Encoding DefaultEncoding = System.Text.Encoding.GetEncoding ("Windows-1252");

 

 



 

public string CalculateHash(string

input)

{

 

System.Text.ASCIIEncoding stringtobyte =

 



 

new

ASCIIEncoding ();

 

 



 

byte

[] bytearray = stringtobyte.GetBytes (input);

System.Security.Cryptography.MD5CryptoServiceProvider md5 =

 



 

new

MD5CryptoServiceProvider ();

 

 



 

byte

[] result = md5.ComputeHash (bytearray);

System.Text.StringBuilder stb =

 



 

new

StringBuilder ();

 

 



 

return

stb.ToString ();





{{opmerking.Naam}}:

{{opmerking.OpmerkingText}}

            

Saving your comment....

Naam is verplicht!
Email is verplicht!
Opmerking is verplicht!