Domestic software intellectual property protection has long been criticized by people, but after rectification and raise people's awareness of copyright of the country, a few years ago pirated software, cracking software rampant Internet situation has now improved a lot. Nevertheless, the current situation is still very grim software intellectual property rights, we need sustained effort.
On Gitee The outstanding students will use this open source project has made a contribution to the protection of software intellectual property, this is a smart-license rights software project works personal and business protection.
Project name: Smart-License
Project Author: SmartBoot
Open-source license: the Apache-2.0
smart-license is an open source project for security reinforcement. Major service in the non-open source, commercial software, with the trial of paid software and other functions, to provide for the use of authorized software system.
Applicable scene:
- Non-open source, commercial software, free software.
- Limit the spread of the product, each customer has the exclusive License.
- One software distribution package according to License to provide different services in different capacity.
- Limited software licensing aging
Lisence running processes
Lisence Application Process
Back Lisence
Use
Generate License
1. Download smart-license.tar.gz , extract.
2. Go to the bin directory execute the following command, for example: ./license.sh the HelloWorld 1D .
- 1d: any license valid for one day, or one day after the License will expire. Supported formats include lifetime:
- h, 1h: 1 hours; 2h: 2 hours
- d, 1d: 1 days; 10d: 10 days
- y, 1y: 1 Year; 2y: 2 years
- HelloWorld: represents the content to be encrypted license.
Under the actual scene can be authorized by the license is valid and different product features, such as: ./license.sh 1Y features_1: ON; features_2: OFF; license to be authorized if the content of the file, the same command can be used, for example: ./license .sh 1y config.properties
3. After the successful implementation, will generate License in the current directory: license.txt License and source files: source.txt. Note: license.txt is available to customers of authority; and source.txt is held by software providers, which contains an encrypted private key, you need to keep
Use License
1. introduced Maven dependent
<dependency> <groupId>org.smartboot.license</groupId> <artifactId>license-client</artifactId> <version>1.0.0-SNAPSHOT</version> </dependency>
2. Load License. Should the License has expired, it will trigger an exception.
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(licenseConfig.getOriginal()); } }
3. Get licenseData and thus start the configuration software.
Click here to visit the project home page: https://gitee.com/smartboot/smart-license