Skip to content

Example of verifying cryptographically signed license keys using C#, Bouncy Castle and RSA PSS-SHA256

License

Notifications You must be signed in to change notification settings

keygen-sh/example-csharp-cryptographic-verification

Repository files navigation

Example C# Cryptographic Verification

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.

Running the example

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=...

Questions?

Reach out at support@keygen.sh if you have any questions or concerns!

About

Example of verifying cryptographically signed license keys using C#, Bouncy Castle and RSA PSS-SHA256

Topics

Resources

License

Stars

Watchers

Forks

Languages