keygen-sh / keygen-api

Keygen is a fair source software licensing and distribution API built with Ruby on Rails. For developers, by developers.
https://keygen.sh
Other
699 stars 40 forks source link

question on offline licensing : machine specific #772

Closed pawangh closed 6 months ago

pawangh commented 6 months ago

Hello All, We intend to use keygen to generate offline licensing. We intend to create license file unique to machine. Is it possible in keygen ?

Thanks Pawan

ezekg commented 6 months ago

Yes, you'll want to checkout a machine, which will result in a machine file. License files and machine files share a lot of similarities in overall format, but they differ in the data that is embedded inside them. A license file contains a signed and encrypted license object — the license being checked out. While a machine file contains a signed and encrypted machine object — the machine being checked out. In addition, when encrypted, license files are encrypted with the license's key, while machine files are encrypted with the license's key and the machine's fingerprint. Additional relationship data can be included in both, e.g. a machine file can also include its related license object.