smart-license授权管理软件 v1.0.3

上传者: 38505158 | 上传时间: 2023-03-09 18:43:41 | 文件大小: 2.26MB | 文件类型: ZIP
smart-license是一款用于安全加固的开源项目。主要服务于非开源产品、商业软件、具备试用功能的付费软件等,为软件提供授权制的使用方式。smart-license适用场景非开源产品、商业软件、收费软件。
限制产品的传播性,每个客户拥有专属 License。
同一款软件发行包根据 License 的不同提供不同的服务能力。
限定软件授权时效smart-license特色开源,代码完全公开,License的生成原理是透明的。
易用,提供二进制包,直接基于命令行生成 License。
安全,生成的 License 在一定程度上具备防篡改能力,破解难度大。
安全加固,采用非对称加密方式对 License源数据 进行预处理,防止伪造License。smart-license使用方式生成License
1、下载smart-license.tar.gz包,解压
2、进入bin目录执行以下命令,例如:./license.sh 1d HelloWorld。
1d:表示授权效期1天,即一天后该License便过期。支持的效期格式包括:
h,1h:1小时; 2h:2小时
d,1d:1天; 10d:10天
y,1y:1年; 2y:2年
HelloWorld:表示待加密的license内容。
实际场景下可以通过license授权不同的产品功能和有效期,例如:./license.sh 1y features_1:on;features_2:off; 如果待授权的license内容为文件,可以采用同样的命令,例如:./license.sh 1y config.properties
3、执行成功后,会在当前目录下生成 License:license.txt以及 License源文件:source.txt。 注意:license.txt是提供给客户的授权文件;而source.txt是由软件提供方持有,其中包含加密私钥,需要妥善保使用License
1、引入Maven依赖
org.smartboot.license
license-client
1.0.0-SNAPSHOT
2、载入License。如若License已过期,则会触发异常。
public class LicenseTest {
public static void main(String[] args) throws Exception {
File file=new File("license.txt");
License license = new License();
LicenseConfig licenseConfig=license.loadLicense(file);
System.out.println(licenseData.getOriginal());
}
}
3、获取licenseData并以此配置启动软件。smart-license截图

文件下载

资源详情

[{"title":"( 43 个子文件 2.26MB ) smart-license授权管理软件 v1.0.3","children":[{"title":"smart-license","children":[{"title":"assembly","children":[{"title":"conf","children":[{"title":"log4j2.xml <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"release.xml <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"keypair.bat <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"keypair.sh <span style='color:#111;'> 151B </span>","children":null,"spread":false},{"title":"license.sh <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":"license.bat <span style='color:#111;'> 323B </span>","children":null,"spread":false},{"title":"license_revert.sh <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"license_revert.bat <span style='color:#111;'> 290B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"images","children":[{"title":"keypair.gif <span style='color:#111;'> 2.77MB </span>","children":null,"spread":false},{"title":"security.png <span style='color:#111;'> 39.98KB </span>","children":null,"spread":false},{"title":"demo_result.png <span style='color:#111;'> 324.17KB </span>","children":null,"spread":false},{"title":"revert.gif <span style='color:#111;'> 3.82MB </span>","children":null,"spread":false},{"title":"dencrypt_data.png <span style='color:#111;'> 256.97KB </span>","children":null,"spread":false},{"title":"keystore.png <span style='color:#111;'> 317.35KB </span>","children":null,"spread":false},{"title":"smart-license.png <span style='color:#111;'> 36.48KB </span>","children":null,"spread":false},{"title":"encrypt_data.png <span style='color:#111;'> 299.43KB </span>","children":null,"spread":false},{"title":"license_apply.png <span style='color:#111;'> 34.84KB </span>","children":null,"spread":false},{"title":"license_forget.png <span style='color:#111;'> 28.60KB </span>","children":null,"spread":false},{"title":"demo.gif <span style='color:#111;'> 3.59MB </span>","children":null,"spread":false}],"spread":false},{"title":"license-server","children":[{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"org","children":[{"title":"smartboot","children":[{"title":"license","children":[{"title":"server","children":[{"title":"LicenseServerTest.java <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"LicenseRevertTest.java <span style='color:#111;'> 567B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"org","children":[{"title":"smartboot","children":[{"title":"license","children":[{"title":"server","children":[{"title":"RasUtil.java <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"SourceLicense.java <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"LicenseEncode.java <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"KeyPairCreator.java <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"LicenseRevert.java <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false},{"title":"LicenseServer.java <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"security.md <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"license-client","children":[{"title":"src","children":[{"title":"test","children":[{"title":"resources","children":[{"title":"license_revert.txt <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"license.txt <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"org","children":[{"title":"smartboot","children":[{"title":"license","children":[{"title":"client","children":[{"title":"LicenseClientTest.java <span style='color:#111;'> 972B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"org","children":[{"title":"smartboot","children":[{"title":"license","children":[{"title":"client","children":[{"title":"LicenseException.java <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"LicenseEntity.java <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"RuntimeExpireStrategy.java <span style='color:#111;'> 385B </span>","children":null,"spread":false},{"title":"License.java <span style='color:#111;'> 7.94KB </span>","children":null,"spread":false},{"title":"Md5.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 10.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"说明.htm <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明