[原创]flexlm ECC pubkey 替换及license制作步骤
关于flexlm ECC pubkey 替换的方法论坛已经发表有相应的贴子。而在pubkey 自动替换和license生成器制作方面,缺少详细的步骤说明。看
了【原创】flexlm程序替换pubkey制作license的血泪史 这一贴子之后,尝试进行pubkey替换获得成功,现在步骤写出来,供有兴趣的朋友参
考。
工具:pubkey.exe V1.70 by tankey,flexlm ECC pubkey 自动搜索工具 by 空手剑客,flexsdk11.4;
1、用“pubkey.exe -d vendname -s 2 -y” 完成120位sign签名替换,并用flexlm ECC pubkey自动搜索工具查看pubkey是否替换成功。
2、根据自己的license的格式在lm_code.h中设置,
lm_code.h位于sdk的machind目录下:
#define LM_SIGN_LEVEL LM_SIGN2 /*根据需要设置
#define LM_STRENGTH LM_STRENGTH_239BIT
#define VENDOR_KEY1 0x84a8d3aa
#define VENDOR_KEY2 0xc632e86a
#define VENDOR_KEY3 0x4f36749f
#define VENDOR_KEY4 0x49dc1925
#define VENDOR_KEY5 0x6c703ea0
#define TRL_KEY1 0xcf78feae
#define TRL_KEY2 0x7b3f8ca0
#define VENDOR_NAME "demo"
#define LM_SEED1 0x11111111
#define LM_SEED2 0x22222222
#define LM_SEED3 0x33333333
#define ENCRYPTION_SEED1 0x12345678
#define ENCRYPTION_SEED2 0x00000000
3、设置c语言编译环境,在i86_n3目录下,运行build.bat。
如果成功目录下生成:lmnewgen.exe -pubkey 会生成lm_pubkey.h 文件 打开查看里面的pubkey 和flexlm ECC pubkey 自动搜索工具得到的是否一致,如果一致则成功。
目录下的lmcrypt.exe 就是license的生成器。
