SecureKeyGenerator 1.2.0
dotnet add package SecureKeyGenerator --version 1.2.0
NuGet\Install-Package SecureKeyGenerator -Version 1.2.0
<PackageReference Include="SecureKeyGenerator" Version="1.2.0" />
paket add SecureKeyGenerator --version 1.2.0
#r "nuget: SecureKeyGenerator, 1.2.0"
// Install SecureKeyGenerator as a Cake Addin #addin nuget:?package=SecureKeyGenerator&version=1.2.0 // Install SecureKeyGenerator as a Cake Tool #tool nuget:?package=SecureKeyGenerator&version=1.2.0
SecureKeyGenerator - Key Generation Library
Overview
SecureKeyGenerator is a powerful Keygen library that allows you to secure your application by generating and managing unique license keys using the Triple DES encryption algorithm. With SecureKeyGenerator, you can lock your application, requiring users to have a valid key for access.
Key Features
Triple DES Algorithm: The library employs the Triple DES algorithm to ensure robust encryption and decryption of sensitive data.
User Identity Generation: SecureKeyGenerator facilitates the generation of a user identity that serves as a key to unlock your application.
Verification Mechanism: The library includes a verification mechanism to ensure the accuracy of the entered user identity.
Getting Started
Initialization
To start using the Keygen library, follow these steps:
1. Initialize KeyGenServices:
- Create an object from the KeyGenServices class.
- Pass your public key and private key to the KeyGenServices constructor.
You can use the following code snippet to generate sample public and private keys:
var keys = encryptionContext.RsaEncryption.GeneratePublicAndPrivateKey();
string samplePublicKey = keys.Item1;
string samplePrivateKey = keys.Item2;
If SecureKeyGenerator is installed on the server system, assign your public key to the publicKey variable. If it's installed on the client system, assign your private key to the privateKey variable.
string metaData = "Sample data (Optional)";
KeyGenServices keyGenServices = new KeyGenServices(samplePublicKey, samplePrivateKey, metaData);
2. Generate SerialNumber (Client-side):
- Use the GetLicenseSerial method to get the user identity as a SerialNember.
var serialNumber = keyGenServices.GetSerialNumber();
3. Encrypt User Identity (Server-side):
- On the server system, use the GetActivationCode method to encrypt the received SerialNumber.
var activationCode = keyGenServices.GetActivationCode(serialNumber);
4. Verify User Identity (Client-side):
- Use the CheckUserValidation method to check if the entered text matches the encrypted user identity.
bool IsVerify = keyGenServices.CheckUserValidation(activationCode);
// Check if the entry is correct and matches the identity info
if (isVerify)
{
// Access granted
}
else
{
// Access denied
}
If the CheckUserValidation method returns true, the entered text is correct and matches the identity info. If it returns false, the entry is not correct.
Conclusion
SecureKeyGenerator's Keygen library provides a seamless way to implement secure key generation, identity verification, and access control in your applications. Utilize the Triple DES encryption algorithm for robust security measures. For more information and customization options, refer to the GitHub repository.
SecureKeyGen
SecureKeyGen is a licensing framework that can be use to create licensing system for a company or group of softwares to protect them from illegal usages as well
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.