Implementasi Algoritma ADFGVX Cipher dan Knapsack Dalam Pengamanan Data Teks
A-1
LISTING PROGRAM
1. Mainform
using
using
using
using
System;
System.Collections.Generic;
System.Drawing;
System.Windows.Forms;
namespace Skripsi_1
{
///
/// Description of MainForm.
///
public partial class MainForm : Form
{
public char[,] kunci = new char[1000,1000];
public int[] barisw = new int[30];
public int[] cipherkunci = new int[1000];
public int bilm,biln,n;
public int kolkey, barkey;
public int nteks;
public MainForm()
{
InitializeComponent();
}
void ToolStripButton1Click(object sender, EventArgs e)
{
}
void ToolStripButton2Click(object sender, EventArgs e)
{
Form tentang = new About();
tentang.Show();
this.Hide();
}
void ENKRIPSIToolStripMenuItemClick(object sender, Eve
ntArgs e)
{
Form enkrip = new Enkripsi();
enkrip.Show();
this.Hide();
}
void DEKRIPSIToolStripMenuItemClick(object sender, Eve
ntArgs e)
{
Dekripsi dekrip = new Dekripsi();
dekrip.bilm = bilm;
dekrip.biln = biln;
Universitas Sumatera Utara
A-2
dekrip.n = n;
for (int i=0; i
LISTING PROGRAM
1. Mainform
using
using
using
using
System;
System.Collections.Generic;
System.Drawing;
System.Windows.Forms;
namespace Skripsi_1
{
///
/// Description of MainForm.
///
public partial class MainForm : Form
{
public char[,] kunci = new char[1000,1000];
public int[] barisw = new int[30];
public int[] cipherkunci = new int[1000];
public int bilm,biln,n;
public int kolkey, barkey;
public int nteks;
public MainForm()
{
InitializeComponent();
}
void ToolStripButton1Click(object sender, EventArgs e)
{
}
void ToolStripButton2Click(object sender, EventArgs e)
{
Form tentang = new About();
tentang.Show();
this.Hide();
}
void ENKRIPSIToolStripMenuItemClick(object sender, Eve
ntArgs e)
{
Form enkrip = new Enkripsi();
enkrip.Show();
this.Hide();
}
void DEKRIPSIToolStripMenuItemClick(object sender, Eve
ntArgs e)
{
Dekripsi dekrip = new Dekripsi();
dekrip.bilm = bilm;
dekrip.biln = biln;
Universitas Sumatera Utara
A-2
dekrip.n = n;
for (int i=0; i