Eb.License.Common (1.0.0)
Published 2026-02-03 22:35:31 -05:00 by doug
Installation
dotnet nuget add source --name doug --username your_username --password your_token dotnet add package --source doug --version 1.0.0 Eb.License.CommonAbout this package
Common license verification library for EnduraByte products
Eb.License.Common
Common license verification library for EnduraByte products.
Features
- RSA-2048 cryptographic signature verification
- PEM-encoded license file parsing
- Cross-platform support (Windows, macOS, Linux)
- Native AOT compatible
Installation
dotnet add package Eb.License.Common --source "https://code.slater.dev/api/packages/doug/nuget/index.json"
Usage
using Eb.License.Common.Crypto;
// Load a license from a .sbkey file
var licenseFile = LicenseFileV1.FromPem(File.ReadAllText("license.sbkey"));
// Verify the signature against your public key
var publicKey = PublicKey.FromPem(publicKeyPem);
var isValid = licenseFile.License.Verify(publicKey);
if (isValid)
{
Console.WriteLine($"Licensed to: {licenseFile.License.Holder.Email}");
}
License
MIT License - Copyright (c) EnduraByte LLC