MD5 function for encrypting a string in VB.NET
Wednesday, February 15th, 2006Imports Microsoft.VisualBasic
Imports System.Security.Cryptography
Imports System.IO
Public Class CommonFunctions2
Public Shared Function MD5Encrypt(ByVal str As String) As String
’Imports System.Security.Cryptography
Dim md5 As MD5CryptoServiceProvider
Dim bytValue() As Byte
Dim bytHash() As Byte
Dim strOutput As String
Dim i As Integer
’ Create New Crypto [...]