home *** CD-ROM | disk | FTP | other *** search
- var s:Array [1..40] of Byte;
- a:String;
- i,l:Integer;
- fa,f8,f0,ee,e6,e4,dc:Integer;
- begin
- write(#13#10#13#10'KhaNeTe''s Crackme #1 keygen by nh'#13#10' Name : ');
- readln(a); write(' Key : ');
- l:=length(a);
- for i:=1 to l do s[i]:=ord(a[i]);
- f8:=s[l]-4 +s[l-4]-s[l-2];
- ee:=s[1]+2 +s[l-1]-s[l-2];
- e6:=s[l-1]*2-s[l-2]+ee;
- dc:=((s[l-1]-1) div 6)+s[1]*2+5;
- e4:=(dc+3) div 6;
- fa:=f8+s[l-2]-s[1];
- for i:=1 to 10 do begin
- if fa>$7a then fa:=fa div 2;
- if f8>$7a then f8:=f8 div 2;
- if ee>$7a then ee:=ee div 2;
- if e6>$7a then e6:=e6 div 2;
- if e4>$7a then e4:=e4 div 2;
- if dc>$7a then dc:=dc div 2;
- if fa<$41 then inc(fa,3);
- if f8<$41 then inc(f8,2);
- if ee<$41 then inc(ee,7);
- if e6<$41 then inc(e6,6);
- if e4<$41 then inc(e4,1);
- if dc<$41 then inc(dc,$f);
- end;
- write(chr(fa)+'-');
- write(chr(dc));
- write(chr(e4));
- write(chr(e6)+'-');
- write(chr(f8));
- write(chr(ee));
- end.