1,打开对应 mac版本的安装包位置,在对应目录StarUML\www\license\node\LicenseManagerDomain.js文件。
2,找到文件23行,修改对应下面函数。添加如下代码:
function validate(PK, name, product, licenseKey){
var pk, decrypted;
// edit by 0xcb
return{
name:"0xcb",
product:"StarUML",
licenseType:"vip",
quantity:"mergades",
licenseKey:"later equals never!"
};
try{
pk =newNodeRSA(PK);
decrypted = pk.decrypt(licenseKey,'utf8');
}catch(err){
returnfalse;
}
var terms = decrypted.trim().split("\n");
if(terms[0]=== name && terms[1]=== product){
return{
name: name,
product: product,
licenseType: terms[2],
quantity: terms[3],
licenseKey: licenseKey
};
}else{
returnfalse;
}
}
3,打开starUML。help>enter license
Name:0xcb
licenseKey:later equals never!
然后提示你注册成功!
来源:http://blog.csdn/mergades/article/details/46662413
1,打开对应 mac版本的安装包位置,在对应目录StarUML\www\license\node\LicenseManagerDomain.js文件。
2,找到文件23行,修改对应下面函数。添加如下代码:
function validate(PK, name, product, licenseKey){
var pk, decrypted;
// edit by 0xcb
return{
name:"0xcb",
product:"StarUML",
licenseType:"vip",
quantity:"mergades",
licenseKey:"later equals never!"
};
try{
pk =newNodeRSA(PK);
decrypted = pk.decrypt(licenseKey,'utf8');
}catch(err){
returnfalse;
}
var terms = decrypted.trim().split("\n");
if(terms[0]=== name && terms[1]=== product){
return{
name: name,
product: product,
licenseType: terms[2],
quantity: terms[3],
licenseKey: licenseKey
};
}else{
returnfalse;
}
}
3,打开starUML。help>enter license
Name:0xcb
licenseKey:later equals never!
然后提示你注册成功!
来源:http://blog.csdn/mergades/article/details/46662413