SecureKeyGenerator 1.0.3.1

dotnet add package SecureKeyGenerator --version 1.0.3.1
NuGet\Install-Package SecureKeyGenerator -Version 1.0.3.1
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.0.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SecureKeyGenerator --version 1.0.3.1
#r "nuget: SecureKeyGenerator, 1.0.3.1"
#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.0.3.1

// Install SecureKeyGenerator as a Cake Tool
#tool nuget:?package=SecureKeyGenerator&version=1.0.3.1

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.
string extraData = "Sample data (Optional)";
string publicKey = "Your public key";
string privateKey = "Your private key";

// Create KeyGenServices object
KeyGenServices keyGenServices = new KeyGenServices(publicKey, privateKey);

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.

You can use the following code snippet to generate sample public and private keys:

using (RSA rsa = new RSACryptoServiceProvider())
{
    // Get the public and private key
    string publicKey = rsa.ToXmlString(false);
    string privateKey = rsa.ToXmlString(true);
}

2. Generate License Serial (Client-side):

  • Use the GetLicenseSerial method to get the user identity as a license serial.
var LicenseSerial = keyGenServices.GetLicenseSerial(extraData);

3. Encrypt User Identity (Server-side):

  • On the server system, use the GetEncryptedUserIdentity method to encrypt the received license serial.
var encryptedLicense = keyGenServices.GetEncryptedUserIdentity(LicenseSerial);

4. Verify User Identity (Client-side):

  • Use the IsVerifyUserIdentity method to check if the entered text matches the encrypted user identity.
bool isVerify = keyGenServices.IsVerifyUserIdentity(encryptedLicense);

// Check if the entry is correct and matches the identity info
if (isVerify)
{
    // Access granted
}
else
{
    // Access denied
}

If the IsVerifyUserIdentity method returns true, the entered text is correct and matches the identity info. If it returns false, the entry is not correct.

If the IsVerifyUserIdentity method is null, the library uses the last entered EncryptedLicense.

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.

Product Compatible and additional computed target framework versions.
.NET Framework net471 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0.3.1 82 2/19/2024
1.0.3 81 2/17/2024
1.0.2 102 2/14/2024
1.0.1 87 2/12/2024
1.0.0 87 2/12/2024

Summary of changes made in this release of the package.