RedirectStandardOutput = true; FileName = c:\\python31\\python.exe; RedirectStandardOutput = true; UseShellExecute = false; RedirectStandardOutput = true; FileName = c:\\python31\\python.exe; RedirectStandardOutput = true; UseShellExecute = false; UseShel

using Process runProses =Process.Startp { StreamReader s = runProses.StandardOutput; string keluar = s.ReadToEnd; if keluar = MessageBox.ShowBerhasil, Info, MessageBo xButtons.OK; textBoxDekBeau.Text = keluar.ToString; } } catch { throw; } }

9. Fungsi Pergesesan Affine Cipher

void ButtonAcakAffClickobject sender, EventArgs e { int nilai = 3; ProcessStartInfo p = new ProcessStartInfo; p.RedirectStandardOutput = true; p.FileName = c:\\python31\\python.exe; p.RedirectStandardOutput = true; p.UseShellExecute = false; p.Arguments = d:\\kode\\program\\pintu.py + shiff 0 + nilai + x + y; try { using Process runProses =Process.Startp { StreamReader s = runProses.StandardOutput; string keluar = s.ReadToEnd; string k = keluar; textBoxGeser.Text = k.ToString; } } catch { throw; } } Universitas Sumatera Utara

10. Fungsi Bilangan Prima Affine Cipher

void ButtonAcakAffbClickobject sender, EventArgs e { int nilai = 3; ProcessStartInfo p = new ProcessStartInfo; p.RedirectStandardOutput = true; p.FileName = c:\\python31\\python.exe; p.RedirectStandardOutput = true; p.UseShellExecute = false; p.Arguments = d:\\kode\\program\\pintu.py + BilPrima 0 + nilai + x + y; try { using Process runProses =Process.Startp { StreamReader s = runProses.StandardOutput; string keluar = s.ReadToEnd; string k = keluar; textBoxBilPrima.Text = k.ToString; } } catch { throw; } }

11. Fungsi Enkripsi Affine Cipher

void ButtonEnkAffClickobject sender, EventArgs e { string Plainteks4 = textBoxEnkBeau.Text.ToString; int b1 = Convert.ToInt32textBoxBilPrima.Text.ToString; int g1 = Convert.ToInt32textBoxGeser.Text.ToString; ProcessStartInfo p = new ProcessStartInfo; p.RedirectStandardOutput = true; p.FileName = c:\\python31\\python.exe; p.RedirectStandardOutput = true; p.UseShellExecute = false; p.Arguments = d:\\kode\\program\\pintu.py + EnkripAffine + b1 + + g1 + + \ + Plainteks4 + \ + y; try { Universitas Sumatera Utara using Process runProses =Process.Startp { StreamReader s = runProses.StandardOutput; string keluar = s.ReadToEnd; if keluar = MessageBox.ShowBerhasil, Info, MessageBo xButtons.OK; textBoxEnkAff.Text = keluar.ToString; } } catch { throw; } }

12. Fungsi Pergesesan Affine Cipher

void TextBoxEnkBeauTextChangedobject sender, EventArgs e { } void ButtonDekAffClickobject sender, EventArgs e { string data2 = textBoxEnkBeau.Text.ToString; string data1 = textBoxDekBeau.Text.ToString; int b1 = Convert.ToInt32textBoxBilPrima.Text; int g1 = Convert.ToInt32textBoxGeser.Text; ProcessStartInfo p = new ProcessStartInfo; p.RedirectStandardOutput = true; p.FileName = c:\\python31\\python.exe;