Thread: new KeyGenMe
View Single Post
  #3  
Old 06-08-2013, 02:59
chessgod101's Avatar
chessgod101 chessgod101 is offline
Co-Administrator
 
Join Date: Jan 2011
Location: United States
Posts: 539
Rept. Given: 2,242
Rept. Rcvd 704 Times in 224 Posts
Thanks Given: 754
Thanks Rcvd at 1,021 Times in 191 Posts
chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899 chessgod101 Reputation: 700-899
I had a little free time today, so I created a quick keygen in Delphi:
Code:
procedure TForm1.Button1Click(Sender: TObject);
var
    Hash: TDCP_sha256;
    hashBytes:array[0..31] of byte;
    EAX1,I,EBX1:cardinal;
  begin
    Hash:= TDCP_sha256.Create(nil);
    Hash.Init;
    Hash.UpdateStr(AnsiString(edit1.Text));
    Hash.Final(hashBytes);
    Hash.Free;

     EAX1:=0;
     EBX1:=0;
    for I := 0 to 31 do begin
     EBX1:=hashBytes[I];
     if EBX1=0 then
     break
     else
     EBX1:=(EBX1*I);
     EAX1:=EAX1+(EBX1*ebx1+$50);
    end;

    edit2.Text:=inttostr(eax1 xor $12345678);
end;
__________________
"As the island of our knowledge grows, so does the shore of our ignorance." John Wheeler

Last edited by chessgod101; 06-08-2013 at 06:06.
Reply With Quote
The Following 3 Users Gave Reputation+1 to chessgod101 For This Useful Post:
copyleft (06-08-2013), giv (06-08-2013)