Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2319353
  • 博文数量: 168
  • 博客积分: 3184
  • 博客等级: 中校
  • 技术积分: 3959
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-12 18:57
文章存档

2019年(1)

2018年(2)

2017年(3)

2016年(15)

2015年(10)

2014年(60)

2011年(1)

2010年(76)

分类: 项目管理

2018-05-07 17:42:50

提示:任何版本的都可以按以下方法尝试。版本2.8.0的本人已验证,已注册。

1,打开对应 mac版本的安装包位置,在对应目录/Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js文件。

2,找到文件23行,修改对应下面函数。更改为如下代码:

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

我的做法是注释掉原有代码,再增加,防止出现问题。

3,打开starUML。help>enter license

Name:0xcb

licenseKey:later equals never!

然后提示你注册成功!


阅读(3202) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~