Kali ini saya admin akan share Tutorial VB.NET 2008 membuat kiptografi langsung saja Listing Programnya :
Toolbox :
Buat 2 buah Text Box
Buat 2 Buah Label
Buat 1 buah Buton
LISTING PROGRAM :
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Plainteks.text = ""
Chiperteks.text = ""
End Sub
Private Sub BtnDeskripsi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnDeskripsi.Click
Dim jumlah As Double = Len(Plainteks.Text)
Dim x As String
Dim xkalimat As String = ""
Dim i As Double
Dim bil As Integer
For i = 1 To jumlah
x = Mid(Plainteks.Text, i, 1)
bil = Asc(x) + 3
x = Chr(bil)
xkalimat = xkalimat + x
Next i
Chiperteks.Text = xkalimat
End Sub
End Class
Semoga Bermanfaat bagi anda :)
Tidak ada komentar:
Posting Komentar