StarUML activation

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:

  1. function validate(PK, name, product, licenseKey){
  2.        var pk, decrypted;
  3.        // edit by 0xcb
  4.        return{
  5.            name:"0xcb",
  6.            product:"StarUML",
  7.            licenseType:"vip",
  8.            quantity:"mergades.com",
  9.            licenseKey:"later equals never!"
  10.        };
  11.        try{
  12.            pk =newNodeRSA(PK);
  13.            decrypted = pk.decrypt(licenseKey,'utf8');
  14.        }catch(err){
  15.            returnfalse;
  16.        }
  17.        var terms = decrypted.trim().split("\n");
  18.        if(terms[0]=== name && terms[1]=== product){
  19.            return{
  20.                name: name,
  21.                product: product,
  22.                licenseType: terms[2],
  23.                quantity: terms[3],
  24.                licenseKey: licenseKey
  25.            };
  26.        }else{
  27.            returnfalse;
  28.        }
  29.    }

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326401357&siteId=291194637