Skip to content

Simple software licensing library to verify license file based on date

License

Notifications You must be signed in to change notification settings

ijat/SimpleLicense-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleLicense-csharp

Simple software licensing library to verify license file based on date

Install

Get it from Nuget.

Example

Generate license

// Create private key and saved it as main.lic
SimpleLicense myLicenseProvider = SimpleLicense.Init("main.lic");
// Generate new license with expiry date
// Repeat this steps for more license
myLicenseProvider.CreateNewLicense("test.lic", DateTime.Now);

Verify license

// Client side to verify license
SimpleLicense clientLicenseProvider = new SimpleLicense();
// true if license file integrity hasnt changed or not expired 
bool isLicenseValid = clientLicenseProvider.VerifyLicense("test.lic");

About

Simple software licensing library to verify license file based on date

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages