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 Btnenkripsi_Click(ByVal
sender As System.Object, ByVal e As
System.EventArgs) Handles Btnenkripsi.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
0 komentar:
Posting Komentar