junian / Standard.Licensing

Easy-to-use licensing library for .NET Framework, Mono, .NET Core, and MAUI / Xamarin products
https://junian.dev/Standard.Licensing/
MIT License
554 stars 127 forks source link

How to generate .lic for a product wich works in a specific machine #8

Closed SonaBIMDev closed 5 years ago

SonaBIMDev commented 5 years ago

Hi First of all, thx for your Code :-) I'd like to generate a lic file with a keyProduct wichh work only one and unique machine. I mean, if the program user move the file to another computer, it won't be work. Is it possible?

lastlink commented 5 years ago

@pierrenavarra I've been encrypting and decrypting my licenses, but the most secure way is to use info from the license and validate with a server and possibly store the response in a cache (I'm in the process of building my own). You can generate your own unique id and store it in the license and validate on this, but users can change it unless your license is encrypted or the unique ids are pulled from a server.