Beispiel #1
0
		private void btnCalculateKeyByXor_Click(object sender, EventArgs e)
		{
			var cipher = new OneTimePad();
			cipher.CalculateXors();
			cipher.CalculateKeyBySpace();
			txtExpectedKey.Text = cipher.GetKeyByProbability();
		}
Beispiel #2
0
		private void btnCalculateKey_Click(object sender, EventArgs e)
		{
			var cipher = new OneTimePad();
			cipher.CalculateKeyByDecodedCipherTexts();
			txtExpectedKey.Text = cipher.GetKeyByProbability();
		}