Home » » Kriptografi Caesar Menggunakan Program VB Net

Kriptografi Caesar Menggunakan Program VB Net

Written By Mesran on Monday, 20 May 2013 | 19:12

Berikut merupakan kriptografi Caesar menggunkaan program vb net

Design form berikut ini.

Kriptografi Caesar Menggunakan Program VB Net



















Berikut listing kriptofrafi caesar menggunakan program vb net.

Public Class Form1

    Private Sub btnEnkripsi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnkripsi.Click
        Dim x As String = ""
        Dim xkalimat As String = ""
        For i = 1 To Len(Plain.Text)
            x = Mid(Plain.Text, i, i)
            x = Chr(Asc(x) + 3)
            xkalimat = xkalimat + x
        Next
        Chiper.Text = xkalimat
    End Sub

    Private Sub btnDekripsi_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDekripsi.Click
        Dim x As String = ""
        Dim xkalimat As String = ""
        For i = 1 To Len(Chiper.Text)
            x = Mid(Chiper.Text, i, i)
            x = Chr(Asc(x) - 3)
            xkalimat = xkalimat + x
        Next
        Plain.Text = xkalimat
    End Sub
End Class


Hasil program Kriptografi Caesar Menggunakan Program VB Net


Kriptografi Caesar Menggunakan Program VB Net

Created by : Tutorial Program VB Net

3 comments:

  1. tutorialnya bagus pak, jadi menambah wawasan saya,. semoga bermanfaat bagi yang membaca

    ReplyDelete

Terima kasih apabila sudah memberikan komentar yang baik dan sopan :)