Enkripsi MD5 di VB.NET

Berikut Coding untuk mengenkripsi String di VB.NET dengan teknik MD5



Imports System.Text
Imports System.Security.Cryptography

Public Function MD5HASH(ByVal Password As String)
        Dim UE As New UnicodeEncoding
        Dim byteSourceText() As Byte = UE.GetBytes(Password)

        Dim md5 As New MD5CryptoServiceProvider

        Dim ByteHash() As Byte = md5.ComputeHash(byteSourceText)

        Return Convert.ToBase64String(ByteHash)
End Function
End Sub


Cara panggil fungsi nya sebagai berikut:

MD5HASH("PasswordKalian")

Comments

madelaynaraco said…
JTG Hotel & Casino: Slot machines - MPRH
JTG Hotel & Casino has just one 양주 출장샵 location 속초 출장마사지 in Mississippi. 삼척 출장안마 This 서울특별 출장안마 is the casino resort for you, the hotel. From there, you can enjoy 사천 출장안마 a stay in an

Popular posts from this blog

Tutorial Install MICROSOFT VISUAL STUDIO 2019 - COMMUNITY EDITION

Tutorial cara menampilkan Query Builder di Visual Studio 2019

Tutorial Install MICROSOFT SQL SERVER 2017