KNM.LicenseValidator 1.0.9

KNM License Validator

A lightweight, hybrid offline/online license validation library for .NET 9 applications with multilanguage support.

Features

  • Hybrid Validation: Online-first with offline fallback
  • Triple Security: RSA signatures + AES encryption + HMAC integrity
  • Multilanguage: Built-in Italian and English support
  • Lightweight: No database dependencies - bring your own data layer
  • Flexible: Configurable validation modes and storage providers
  • Custom License Format: Branded license files with Base32 encoding

Quick Start

Basic setup

    builder.Services.AddKNMLicenseValidator(config =>
    {
    config.Mode = ValidationMode.Hybrid;
    config.ApiBaseUrl = "https://api.yourcompany.com";
    config.ApiKey = "your-api-key";
    config.LicenseDirectory = "./Licenses";
    });

Usage

    public class MyService
    {
        private readonly ILicenseValidator _validator;


        public MyService(ILicenseValidator validator)
        {
            _validator = validator;
        }

        public async Task<bool> ValidateAsync()
        {
            var result = await _validator.ValidateLicenseAsync();
            return result.IsValid;
        }
    }

License

No packages depend on KNM.LicenseValidator.

Version Downloads Last updated
1.0.9 2 03/11/2025
1.0.8 0 03/11/2025
1.0.7 1 03/11/2025
1.0.6 1 03/11/2025
1.0.4 1 03/11/2025