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