예제 #1
0
파일: Chiper.cs 프로젝트: Helen1987/edu
		private void btnCalculateKeyByXor_Click(object sender, EventArgs e)
		{
			var cipher = new OneTimePad();
			cipher.CalculateXors();
			cipher.CalculateKeyBySpace();
			txtExpectedKey.Text = cipher.GetKeyByProbability();
		}
예제 #2
0
파일: Chiper.cs 프로젝트: Helen1987/edu
		private void btnCalculateKey_Click(object sender, EventArgs e)
		{
			var cipher = new OneTimePad();
			cipher.CalculateKeyByDecodedCipherTexts();
			txtExpectedKey.Text = cipher.GetKeyByProbability();
		}