利用下面的方法,可直接输入数据,反回md5加密后的代码
1Public Shared Function MD5()Function MD5(ByVal Sourcein As String) As String 2 Dim MD5CSP As MD5CryptoServiceProvider = New MD5CryptoServiceProvider() 3 Dim MD5Source() As Byte = System.Text.Encoding.UTF8.GetBytes(Sourcein) 4 Dim MD5Out() As Byte = MD5CSP.ComputeHash(MD5Source) 5 Return Convert.ToBase64String(MD5Out) 6End Function
.net has the easy way to encryption and decryption. It's a good thing.
确实方便多了
Because of the cache,you may see your comments several minutes later.