chore: divide the crypto output into fifths
This commit is contained in:
parent
2e2f79258c
commit
917059de19
13
main_form.cs
13
main_form.cs
|
@ -210,6 +210,7 @@ namespace KRY_0x01_ng
|
|||
prep_message(textBox5);
|
||||
|
||||
string cryptmessage = "";
|
||||
string transient_cryptm = "";
|
||||
string msg = prep_msg_str;
|
||||
int arrtb_gl = arrayTable.GetLength(0);
|
||||
|
||||
|
@ -239,9 +240,17 @@ namespace KRY_0x01_ng
|
|||
}
|
||||
|
||||
string resulting_digraph = ech1.ToString() + ech2.ToString();
|
||||
cryptmessage += resulting_digraph;
|
||||
transient_cryptm += resulting_digraph;
|
||||
}
|
||||
for (int i = 0; i < transient_cryptm.Length; i+=5)
|
||||
{
|
||||
if (i < transient_cryptm.Length - 4)
|
||||
{
|
||||
cryptmessage += transient_cryptm.Substring(i, 5) + " ";
|
||||
continue;
|
||||
}
|
||||
cryptmessage += transient_cryptm.Substring(i, transient_cryptm.Length-i);
|
||||
}
|
||||
|
||||
textBox7.Text = cryptmessage;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue