Beispiel #1
0
        private void btnHash_Click(object sender, EventArgs e)
        {
            sBackup = txtResult.Text;
            btnRevertText.Enabled = true;

            switch (cmbHashType.SelectedItem.ToString())
            {
            case "MD5 Hash":
                txtResult.Text = MD5.Hash(txtResult.Text);
                break;

            case "CRC32 Hash":
                txtResult.Text = CRC32.Hash(txtResult.Text);
                break;

            case "SHA1 Hash":
                txtResult.Text = SHA1.Hash(txtResult.Text);
                break;

            case "SHA256 Hash":
                txtResult.Text = SHA256.Hash(txtResult.Text);
                break;

            case "SHA384 Hash":
                txtResult.Text = SHA384.Hash(txtResult.Text);
                break;

            case "SHA512 Hash":
                txtResult.Text = SHA512.Hash(txtResult.Text);
                break;
            }
        }
Beispiel #2
0
 private void BtnSHA384Hash_Click(object sender, EventArgs e)
 {
     txtResult.Text = SHA384.Hash(txtResult.Text, radUseLowerCase.Checked);
 }