1 Star 13 Fork 6

EZAge/LibXL注册机

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Gen.pas 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
EZAge 提交于 2021-08-09 08:49 . libxl注册码生成
unit Gen;
interface
uses
Windows, SysUtils, Math, StrUtils, Clipbrd, CnMD5;
function calcReginsterCode(key:string):string;
function checkCondition(k26,k28,k30:Char):Integer;
procedure SetClipboard(s:string);
implementation
procedure SetClipboard(s:string);
begin
if s='' then Exit;
with TClipboard.Create do
begin
AsText:=s;
Free;
end;
end;
function calcReginsterCode(key:string):string;
const
suffix='windows-';
odd='22200ce06b66a';
codeLen=32;
var
flip_key,md5:string;
code32:array [0..codeLen-1] of Char;
i,keyLen:Integer;
begin
Result:='';
FillChar(code32,codeLen,#0);
for i:=1 to Length(odd) do
code32[(i-1)*2]:=odd[i];
keyLen:=Length(key);
flip_key:='';
for i:=0 to keyLen-1 do
flip_key:=flip_key+key[keyLen-i];
md5:=MD5Print(MD5String(flip_key));
for i:=0 to 7 do
begin
code32[i*4+1]:=md5[i*2+1];
code32[i*4+3]:=md5[i*2+2];
end;
//windows-2421220b07c2e10a6eb96768a2p7r6gc
//windows-2421220b07c2e10a6eb96768a2o7p6hc
code32[26]:=Chr($70);
code32[28]:=Chr($72);
code32[30]:=Chr($67);
if checkCondition(code32[26],code32[28],code32[30])=-1 then Exit;
Result:=suffix+string(code32);
end;
function checkCondition(k26,k28,k30:Char):Integer;
begin
Result:=-1;
if (Ord(k28)+Ord(k30)-$69=Ord(k26)) and (Ord(k28)>=$63) and (Ord(k28)<>$65) then
begin
if (Ord(k28)<>$66) or (Ord(k30)>=$6C) then Result:=0;
end;
end;
end.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ezage/libxl-KeyGen.git
[email protected]:ezage/libxl-KeyGen.git
ezage
libxl-KeyGen
LibXL注册机
master

搜索帮助