StarUML激活

  感謝  http://blog.csdn.net/mergades/article/details/46662413node

1,打開對應 mac版本的安裝包位置,在對應目錄/Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js文件。app

2,找到文件23行,修改對應下面函數。更改成以下代碼:函數

 
  
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 = new NodeRSA(PK); decrypted = pk.decrypt(licenseKey, 'utf8'); } catch (err) { return false; } 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 { return false; } }

 

個人作法是註釋掉原有代碼,再增長,防止出現問題。spa

3,打開starUML。help>enter license.net

Name:0xcbcode

licenseKey:later equals never!blog

相關文章
相關標籤/搜索