Frederic Malenfant - Service TI etc.
Accueil
Service conseil
Logiciels
Paternité
Contact
Blog
String to convert
MD5 Value
This is a very simple utility that give you the MD5 hash code of a string. I only convert your string to the corresponding MD5. I do not store anything, or try to steal your identity or password. This is the only code that is execucted on this page.
Source code VB.NET
Button click: txtmd5.Text = GetMD5(txtorigin.Text)
Public Shared Function GetMD5(ByVal _stringToEncode As String) As String
Dim md5Hasher As System.Security.Cryptography.MD5
Dim data As Byte()
Dim sBuilder As New System.Text.StringBuilder()
_stringToEncode = _stringToEncode.Trim
md5Hasher = System.Security.Cryptography.MD5.Create()
data = md5Hasher.ComputeHash(System.Text.Encoding.UTF8.GetBytes(_stringToEncode))
sBuilder = New System.Text.StringBuilder()
For i As Integer = 0 To data.Length - 1
sBuilder.Append(data(i).ToString("x2"))
Next i
Return sBuilder.ToString()
End Function
Qui suis-je
Nom :
Frédéric Malenfant
Lieu :
Québec, Canada
Analyste-programmeur
, région de Québec, Lévis.
radio
XM Radio Satellite
XM 172
Radio Pirate
Radio Haute Resolution
politique
Québécois libre
Antagoniste
geek
Carnet Techno
Diggnation
Technaute
social
Fondation Gilles Kègle
Grand tour Yves Landry
Unicef
Croix-rouge
economique
L'illusion tranquille
Institut Économique de Montréal
Institut Fraser
blogues
Ygreck
Blog du Québécois Libre
EcoGeek