https://github.com/keygen-sh/example-csharp-cryptographic-license-files
Example of verifying cryptographically signed and encrypted license files using C#, NSec, Bouncy Castle, Ed25519 and AES-256-GCM.
https://github.com/keygen-sh/example-csharp-cryptographic-license-files
Last synced: 3 months ago
JSON representation
Example of verifying cryptographically signed and encrypted license files using C#, NSec, Bouncy Castle, Ed25519 and AES-256-GCM.
- Host: GitHub
- URL: https://github.com/keygen-sh/example-csharp-cryptographic-license-files
- Owner: keygen-sh
- License: mit
- Created: 2022-06-20T15:10:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-09T16:45:07.000Z (about 2 years ago)
- Last Synced: 2025-06-30T00:38:29.635Z (3 months ago)
- Language: C#
- Size: 15.6 KB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example C# Cryptographic License Files
This is an example of how to verify and decrypt cryptographic license files in C#
and .NET, using Ed25519 and AES-256-GCM.## Running the example
First, install dependencies with [`dotnet`](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet):
```
dotnet restore
```Then run the program:
```
dotnet run --pretty-print --path examples/license.lic \
--key AFCC0A-B8C07F-F77E6C-93FB02-9FC515-V3
```You should see log output indicating the current license file is valid as well
as its decrypted contents:```
License file is valid! Decrypting...
License file was successfully decrypted!
Decrypted: ...
```## Questions?
Reach out at [support@keygen.sh](mailto:support@keygen.sh) if you have any
questions or concerns!