private void btnRandomKey_Click(object sender, EventArgs e) { txbKey.Text = Encoding.Default.GetString(algorithm.GenerateRandomKey()); }