Institutional Repository | Satya Wacana Christian University: Implementasi dan Analisis Performa Kriptografi Metode WAKE pada Kombinasi Data Numerik dan Karakter
Lampiran
Lampiran 1: Hasil Pengujian Enkripsi
Nama File
n Karakter
n Numerik
Waktu Enkripsi
File 1.txt
0
31
0.109375
File 2.txt
1
30
0.031250
File 3.txt
2
29
0.156250
File 4.txt
3
28
0.093750
File 5.txt
4
27
0.015625
File 6.txt
5
26
0.234375
File 7.txt
6
25
0.031250
File 8.txt
7
24
0.109375
File 9.txt
8
23
0.359375
File 10.txt
9
22
0.156250
File 11.txt
10
21
0.046875
File 12.txt
11
20
0.109375
File 13.txt
12
19
0.531250
File 14.txt
13
18
0.375000
File 15.txt
14
17
0.296875
File 16.txt
15
16
0.156250
File 17.txt
16
15
0.250000
File 18.txt
17
14
0.390625
File 19.txt
18
13
0.093750
File 20.txt
19
12
0.640625
File 21.txt
20
11
0.156250
File 22.txt
21
10
0.093750
File 23.txt
22
9
0.531250
File 24.txt
23
8
0.593750
File 25.txt
24
7
0.578125
File 26.txt
25
6
0.531250
File 27.txt
26
5
0.343750
File 28.txt
27
4
0.328125
File 29.txt
28
3
0.265625
File 30.txt
29
2
0.593750
File 31.txt
30
1
0.375000
File 32.txt
31
0
0.109375
liii
Lampiran 2: Hasil Pengujian Dekripsi
Nama File
File 1.txt
n Karakter
0
n Numerik
31
Waktu Dekripsi
File 2.txt
1
30
0.031250
File 3.txt
2
29
0.250000
File 4.txt
3
28
0.171875
File 5.txt
4
27
0.500000
File 6.txt
5
26
0.296875
File 7.txt
6
25
0.062500
File 8.txt
7
24
0.421875
File 9.txt
8
23
0.125000
File 10.txt
9
22
0.296875
File 11.txt
10
21
0.031250
File 12.txt
11
20
0.062500
File 13.txt
12
19
0.468750
File 14.txt
13
18
0.078125
File 15.txt
14
17
0.609375
File 16.txt
15
16
0.156250
File 17.txt
16
15
0.328125
File 18.txt
17
14
0.046875
File 19.txt
18
13
0.015625
File 20.txt
19
12
0.468750
File 21.txt
20
11
0.328125
File 22.txt
21
10
0.546875
File 23.txt
22
9
0.171875
File 24.txt
23
8
0.296875
File 25.txt
24
7
0.578125
File 26.txt
25
6
0.359375
File 27.txt
26
5
0.312500
File 28.txt
27
4
0.140625
File 29.txt
28
3
0.609375
File 30.txt
29
2
0.484375
File 31.txt
30
1
0.218750
File 32.txt
31
0
0.031250
0.281250
liv
Lampiran 3: Kode Program Button Encrypt
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
Private Sub cmdEncrypt_Click()
Me.MousePointer = 0
LblMessage.Caption = ""
If txtFileName.Text = "" Then
MsgBox "Masukkan nama file yang valid!", vbCritical +
vbOKOnly, "Tidak ada file"
Me.MousePointer = 0
LblMessage.Caption = ""
txtFileName.SetFocus
Exit Sub
ElseIf Dir(txtFileName.Text, vbNormal) = "" Then
MsgBox "Nama file tidak sah !", vbCritical + vbOKOnly,
"Perhatian"
txtFileName.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
ElseIf txtPassword.Text = "" Then
MsgBox "Password di butuhkan untuk proses ini!", vbCritical
+ vbOKOnly, "Tidak ada password"
txtPassword.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
Else
Me.MousePointer = 0
LblMessage.Caption = "Proses Ennkripsi file. Tunggu...."
Timer1.Enabled = True
waktu = Timer - 0.02
varWaktu = waktu
strKunci = txtPassword
nPutaran = Val(txtputar.Text)
Call ProsesSBox(strKunci)
Call GetWakeKEY(strKunci, nPutaran)
DoEncrypt
Timer1.Enabled = False
lblWaktu.Caption = Format(Timer - waktu, "#0.#00000")
KapasitasA
Call LogTambah("Enc " & Time & " File " & txtFileName & "
Awal " & lblKapasitasAwal & " Akhir " & lblKapasitasAkhir &
" Selama " & lblWaktu)
Me.MousePointer = 0
LblMessage.Caption = "Selesai!"
End If
End Sub
lv
Lampiran 4: Kode Program Button Decrypt
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
Private Sub cmdDecrypt_Click()
Me.MousePointer = 0
LblMessage.Caption = ""
If txtFileName.Text = "" Then
MsgBox "Masukkan nama file yang valid!", vbCritical +
vbOKOnly, "Tidak ada file"
Me.MousePointer = 0
LblMessage.Caption = ""
txtFileName.SetFocus
Exit Sub
ElseIf Dir(txtFileName.Text, vbNormal) = "" Then
MsgBox "Nama file tidak sah !", vbCritical + vbOKOnly,
"Perhatian"
txtFileName.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
ElseIf txtPassword.Text = "" Then
MsgBox "Password di butuhkan untuk proses ini!",
vbCritical + vbOKOnly, "Tidak ada password"
txtPassword.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
Else
Me.MousePointer = 0
LblMessage.Caption = "Proses Dekripsi file. Tunggu...."
Timer1.Enabled = True
waktu = Timer - 0.02
varWaktu = waktu
strKunci = txtPassword
nPutaran = Val(txtputar.Text)
Call ProsesSBox(strKunci)
Call GetWakeKEY(strKunci, nPutaran)
DoDecrypt
Timer1.Enabled = False
lblWaktu.Caption = Format(Timer - waktu, "#0.#00000")
KapasitasA
Call LogTambah("Dec " & Time & " File " & txtFileName
& " Awal " & lblKapasitasAwal & " Akhir " &
lblKapasitasAkhir & " Selama " & lblWaktu)
38.
Me.MousePointer = 0
39.
LblMessage.Caption = "Selesai!"
40.
End If
End Sub
Lampiran 1: Hasil Pengujian Enkripsi
Nama File
n Karakter
n Numerik
Waktu Enkripsi
File 1.txt
0
31
0.109375
File 2.txt
1
30
0.031250
File 3.txt
2
29
0.156250
File 4.txt
3
28
0.093750
File 5.txt
4
27
0.015625
File 6.txt
5
26
0.234375
File 7.txt
6
25
0.031250
File 8.txt
7
24
0.109375
File 9.txt
8
23
0.359375
File 10.txt
9
22
0.156250
File 11.txt
10
21
0.046875
File 12.txt
11
20
0.109375
File 13.txt
12
19
0.531250
File 14.txt
13
18
0.375000
File 15.txt
14
17
0.296875
File 16.txt
15
16
0.156250
File 17.txt
16
15
0.250000
File 18.txt
17
14
0.390625
File 19.txt
18
13
0.093750
File 20.txt
19
12
0.640625
File 21.txt
20
11
0.156250
File 22.txt
21
10
0.093750
File 23.txt
22
9
0.531250
File 24.txt
23
8
0.593750
File 25.txt
24
7
0.578125
File 26.txt
25
6
0.531250
File 27.txt
26
5
0.343750
File 28.txt
27
4
0.328125
File 29.txt
28
3
0.265625
File 30.txt
29
2
0.593750
File 31.txt
30
1
0.375000
File 32.txt
31
0
0.109375
liii
Lampiran 2: Hasil Pengujian Dekripsi
Nama File
File 1.txt
n Karakter
0
n Numerik
31
Waktu Dekripsi
File 2.txt
1
30
0.031250
File 3.txt
2
29
0.250000
File 4.txt
3
28
0.171875
File 5.txt
4
27
0.500000
File 6.txt
5
26
0.296875
File 7.txt
6
25
0.062500
File 8.txt
7
24
0.421875
File 9.txt
8
23
0.125000
File 10.txt
9
22
0.296875
File 11.txt
10
21
0.031250
File 12.txt
11
20
0.062500
File 13.txt
12
19
0.468750
File 14.txt
13
18
0.078125
File 15.txt
14
17
0.609375
File 16.txt
15
16
0.156250
File 17.txt
16
15
0.328125
File 18.txt
17
14
0.046875
File 19.txt
18
13
0.015625
File 20.txt
19
12
0.468750
File 21.txt
20
11
0.328125
File 22.txt
21
10
0.546875
File 23.txt
22
9
0.171875
File 24.txt
23
8
0.296875
File 25.txt
24
7
0.578125
File 26.txt
25
6
0.359375
File 27.txt
26
5
0.312500
File 28.txt
27
4
0.140625
File 29.txt
28
3
0.609375
File 30.txt
29
2
0.484375
File 31.txt
30
1
0.218750
File 32.txt
31
0
0.031250
0.281250
liv
Lampiran 3: Kode Program Button Encrypt
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
Private Sub cmdEncrypt_Click()
Me.MousePointer = 0
LblMessage.Caption = ""
If txtFileName.Text = "" Then
MsgBox "Masukkan nama file yang valid!", vbCritical +
vbOKOnly, "Tidak ada file"
Me.MousePointer = 0
LblMessage.Caption = ""
txtFileName.SetFocus
Exit Sub
ElseIf Dir(txtFileName.Text, vbNormal) = "" Then
MsgBox "Nama file tidak sah !", vbCritical + vbOKOnly,
"Perhatian"
txtFileName.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
ElseIf txtPassword.Text = "" Then
MsgBox "Password di butuhkan untuk proses ini!", vbCritical
+ vbOKOnly, "Tidak ada password"
txtPassword.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
Else
Me.MousePointer = 0
LblMessage.Caption = "Proses Ennkripsi file. Tunggu...."
Timer1.Enabled = True
waktu = Timer - 0.02
varWaktu = waktu
strKunci = txtPassword
nPutaran = Val(txtputar.Text)
Call ProsesSBox(strKunci)
Call GetWakeKEY(strKunci, nPutaran)
DoEncrypt
Timer1.Enabled = False
lblWaktu.Caption = Format(Timer - waktu, "#0.#00000")
KapasitasA
Call LogTambah("Enc " & Time & " File " & txtFileName & "
Awal " & lblKapasitasAwal & " Akhir " & lblKapasitasAkhir &
" Selama " & lblWaktu)
Me.MousePointer = 0
LblMessage.Caption = "Selesai!"
End If
End Sub
lv
Lampiran 4: Kode Program Button Decrypt
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
Private Sub cmdDecrypt_Click()
Me.MousePointer = 0
LblMessage.Caption = ""
If txtFileName.Text = "" Then
MsgBox "Masukkan nama file yang valid!", vbCritical +
vbOKOnly, "Tidak ada file"
Me.MousePointer = 0
LblMessage.Caption = ""
txtFileName.SetFocus
Exit Sub
ElseIf Dir(txtFileName.Text, vbNormal) = "" Then
MsgBox "Nama file tidak sah !", vbCritical + vbOKOnly,
"Perhatian"
txtFileName.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
ElseIf txtPassword.Text = "" Then
MsgBox "Password di butuhkan untuk proses ini!",
vbCritical + vbOKOnly, "Tidak ada password"
txtPassword.SetFocus
Me.MousePointer = 0
LblMessage.Caption = ""
Exit Sub
Else
Me.MousePointer = 0
LblMessage.Caption = "Proses Dekripsi file. Tunggu...."
Timer1.Enabled = True
waktu = Timer - 0.02
varWaktu = waktu
strKunci = txtPassword
nPutaran = Val(txtputar.Text)
Call ProsesSBox(strKunci)
Call GetWakeKEY(strKunci, nPutaran)
DoDecrypt
Timer1.Enabled = False
lblWaktu.Caption = Format(Timer - waktu, "#0.#00000")
KapasitasA
Call LogTambah("Dec " & Time & " File " & txtFileName
& " Awal " & lblKapasitasAwal & " Akhir " &
lblKapasitasAkhir & " Selama " & lblWaktu)
38.
Me.MousePointer = 0
39.
LblMessage.Caption = "Selesai!"
40.
End If
End Sub