dnauck / Portable.Licensing

Portable.Licensing is a cross platform software licensing framework which allows you to implement licensing into your application or library. It provides you all tools to create and validate licenses for your software.
http://dev.nauck-it.de/projects/portable-licensing
MIT License
592 stars 173 forks source link

Use public key to encrypt attribute client side #28

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi, I apologise if this is an unbelievably stupid question but I was wondering if it was possible to use the public key that is generated and shipped with our code (using Portable.Licensing) to encrypt an attribute for the purpose of generating a machine specific license? We potentially do not want the user to know what attributes are being used for the purpose of validation. Can we use Portable.Licensing to do this.Any thoughts or advice welcomed.

Thanks, Wilson

dnauck commented 8 years ago

Do i understand you correctly that you want to encrypt parts or the whole license file to prevent the user from looking with an text editor in it?

Currently it's only signed to prevent manipulation.

ghost commented 8 years ago

No i was thinking about gathering machine specific data, encrypting it using the public key and having the user send to us. We decrypt using the private key and use attributes for license generation. But the attribute information will be contained in the license so there seems there would be no point in encrypting that data in the first place. So my point is moot i think.

Thanks for the quick reply.