private void btnCrack_Click(object sender, EventArgs e) { if (this.CheckParams()) { this.SetButtonState(false); GPUParams gpuParams = this.GetParams(); //Md5MD5PassSaltHepler md5Helper = new Md5MD5PassSaltHepler(); //md5Helper.Start(gpuParams.DataPath); cracker = new GPUCrackHelper(gpuParams); cracker.Start(); } }
private GPUParams GetParams() { GPUParams gpuParam = new GPUParams(); gpuParam.AppPath = txtApp.Text; gpuParam.DataPath = txtData.Text; gpuParam.IsSalt = chkSalt.Checked; gpuParam.GpuApp = (GPUAppType)this.comboApp.SelectedValue; gpuParam.Timeout = Convert.ToInt32(txtTimeOut.Text); gpuParam.BatchCount = Convert.ToInt32(txtCount.Text); return(gpuParam); }
public GPUCrackHelper(GPUParams gpuParams) { this.CurretnParams = gpuParams; }