This is an example of how to verify cryptographic license keys in C# and .NET.
This example verifies the RSA_2048_PKCS1_PSS_SIGN_V2 scheme.
For an example of verifying RSA_2048_PKCS1_SIGN_V2 using System.Security.Cryptography, see this gist.
For an example of verifying an ED25519_SIGN key, please see this gist.
First, install dependencies with dotnet:
dotnet restore
Then run the program:
dotnet run
You should see log output indicating the current license key is valid:
[INFO] License key is cryptographically valid: key=key/... dataset=...
Reach out at [email protected] if you have any questions or concerns!