SecureKeyGenerator 1.2.0

dotnet add package SecureKeyGenerator --version 1.2.0                
NuGet\Install-Package SecureKeyGenerator -Version 1.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SecureKeyGenerator" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SecureKeyGenerator --version 1.2.0                
#r "nuget: SecureKeyGenerator, 1.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
1.2.0 108 9/11/2024
1.1.1 123 5/11/2024
1.1.0 87 5/11/2024
1.0.3.1 120 2/19/2024
1.0.3 110 2/17/2024
1.0.2 130 2/14/2024
1.0.1 113 2/12/2024
1.0.0 114 2/12/2024