C#C
C#4y ago
7 replies
Dusty

License Key System

Hey, how would you implement a licensing system?

I basically need those 3 things:
- Online key validation (e.g. HTTP endpoint)
- Offline key validation fallback
- Blacklisting license keys

I know that this doesn't protect piracy in any way but I don't need that anyway.
The basic license check control flow would be the following:
1. Startup
2. Check license key
3. Continue startup or terminate app

I know that IdentityServer uses some kind of licensing system aswell but looking at the source it kinda looks quite complicated.

I also found this library: https://github.com/appsoftwareltd/dotnet-licence-key-generator
Not sure if this is good though.

Tl;dr:
Is there already a library which fullfills my goals and/or how would I implement offline license validation?
GitHub
Key Generation and Verification System component .NET Core 1.0+, .NET Framework 4.5+ - GitHub - appsoftwareltd/dotnet-licence-key-generator: Key Generation and Verification System component .NET Co...
GitHub - appsoftwareltd/dotnet-licence-key-generator: Key Generatio...
Was this page helpful?