Code Monkey home page Code Monkey logo

Comments (7)

verhas avatar verhas commented on July 24, 2024 2

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.

prarshah avatar prarshah commented on July 24, 2024

@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.

verhas avatar verhas commented on July 24, 2024

There are two things:

  1. 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.

  2. 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.

prarshah avatar prarshah commented on July 24, 2024

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.

verhas avatar verhas commented on July 24, 2024

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.

anaghaShotty123 avatar anaghaShotty123 commented on July 24, 2024

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.

verhas avatar verhas commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.