Exemplo n.º 1
0
        private void OnKeyTextChanged()
        {
            btn_DecryptWForce.Enabled = false;
            btn_DecryptWKey.Enabled   = false;
            PartialBytesArray         = null;
            text_hexKey.Clear();
            if (string.IsNullOrWhiteSpace(text_key.Text))
            {
                return;
            }
            var formatedKey = FormDataManager.FormatKeyInput(text_key.Text, 48);

            PartialBytesArray = FormDataManager.GetPartialBytesKeyString(formatedKey);
            if (PartialBytesArray == null || PartialBytesArray.Length <= 0)
            {
                return;
            }

            foreach (var item in PartialBytesArray)
            {
                item.SkipLSB = checkBox_SkipLsb.Checked;
            }

            text_hexKey.Text = formatedKey;
            if (string.IsNullOrEmpty(text_hexKey.Text))
            {
                return;
            }
            ShowHexKeyaFromPartialBytes(PartialBytesArray);

            btn_DecryptWKey.Enabled = true;

            if (!direcotorioSeleccionado)
            {
                return;
            }
            btn_DecryptWForce.Enabled = true;
        }