Comments (7)
You can use the UUIDCalculator
class to calculate a unique UUID for the machine and you can include this calculated value in the license as a UUID feature. In case the calculated UUID and the one included in the license are not the same then the program using License3j can refuse the operation.
Note that the calculation of the UUID may not be reliable on virtual machines and it may result in different UUIDs even on the same machine some times.
from license3j.
@verhas
Hello,
Your above-stated solution helped me, thank you.
Also, when I am validating using a public key from the program license.ok is true,
but when I send the same key as a binary feature,
( I am extracting this feature as binary to validate on client side)
the key is getting changed and shows license invalid.
Thanks in advance.
from license3j.
There are two things:
-
Check that the key is the same bit-by-bit where it works and also where you send over, package and unpackage. If they differ then there is some error in the way how you package.
-
Putting the public key to be used to check the license as a binary feature into the license itself is a total non-sense. Your user just can download License3JRepl and create its own license with its own private and public key and put its own public key into the binary feature and license the program with any parameters as they like.
from license3j.
I know was adding the public key for POC so that I don't always have to change the file contains when I found that passing it that way doesn't get validated while the other way it does. Thanks.
from license3j.
I do not know what the problem can be. It is binary data after all. If this is the same there as in the source then it will work. I am sure you will find some simple reasons why this special way does not work.
from license3j.
When you said:
Note that the calculation of the UUID may not be reliable on virtual machines and it may result in different UUIDs even on the same machine some times.
I guess using UUIDCalculator for first time validation only will work, then we can carry periodic validations without UUIDs
from license3j.
The first time you use the UUID Calculator to get the value to be embedded into the license as a feature. Validation uses UUIDCalculator the second, the third and so on times. And the UUIDCalculator on a virtual machine may return different values each and every time.
from license3j.
Related Issues (20)
- License verification on Ubuntu vs Windows HOT 14
- License file is not closed after reading it HOT 1
- missing class HOT 1
- Exception when use a string with colon HOT 3
- Improve performance by reducing / deferring Stream terminal operations HOT 1
- Sample and How to for new version HOT 1
- java.lang.ClassNotFoundException: javax0.license3j.io.LicenseReader
- A new version with org.bouncycastle:bcprov-jdk15on v1.60 HOT 5
- Question - Warning updating from 1.0.4 to 2.0.1 HOT 3
- License verification when adding a feature after signing. HOT 3
- how to migrate from 2 -> 3 HOT 2
- [ERROR] Key format STRING is unknown HOT 1
- Using network interface names to calculate machine UUID downsides HOT 3
- Wishlist: HOT 1
- Tests fail with JVM 13 and 17 HOT 1
- Exception while serializing Feature to JSON, e.g. DATE Feature not regocnized as DATE. HOT 3
- Trivial attack HOT 1
- [email protected] compatibility to [email protected] HOT 1
- java.security.InvalidKeyException: invalid key format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from license3j.