1. Open the installation package location of the corresponding mac version, in the corresponding directory StarUML\www\license\node\LicenseManagerDomain.js file.
2. Find line 23 of the file and modify the corresponding function below. Add the following code:
function validate(PK, name, product, licenseKey){
var pk, decrypted;
// edit by 0xcb
return{
name:"0xcb",
product:"StarUML",
licenseType:"vip",
quantity:"mergades.com",
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. Open starUML. help>enter license
Name:0xcb
licenseKey:later equals never!
Then prompt you to register successfully!
Source: http://blog.csdn.net/mergades/article/details/46662413