SecureKeyGenerator 1.0.1
See the version list below for details.
dotnet add package SecureKeyGenerator --version 1.0.1
NuGet\Install-Package SecureKeyGenerator -Version 1.0.1
<PackageReference Include="SecureKeyGenerator" Version="1.0.1" />
paket add SecureKeyGenerator --version 1.0.1
#r "nuget: SecureKeyGenerator, 1.0.1"
// Install SecureKeyGenerator as a Cake Addin #addin nuget:?package=SecureKeyGenerator&version=1.0.1 // Install SecureKeyGenerator as a Cake Tool #tool nuget:?package=SecureKeyGenerator&version=1.0.1
SecureKeyGenerator - Key Generation Library
Overview
SecureKeyGenerator is a key generation library designed to add an extra layer of security to your application. This library utilizes the Triple DES algorithm for encrypting and decrypting strings, providing a secure mechanism for key generation.
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.
Usage
Initialization
To begin using the library, create an instance of the KeyGenServices class:
KeyGenServices keyGenServices = new KeyGenServices();
Generate Encrypted User Identity
To obtain the encrypted user identity, use the GetEncryptedUserIdentity method:
string encryptedUserIdentity = keyGenServices.GetEncryptedUserIdentity();
This method returns an encrypted string containing the user identity.
Verify User Identity
To verify the entered user identity, use the IsVerifyUserIdentity method:
// Verify User Identity with a specific input
bool isVerifiedWithInput = keyGenServices.IsVerifyUserIdentity(enteredUserIdentity);
// Verify User Identity using the last entered input
bool isVerified = keyGenServices.IsVerifyUserIdentity();
This method checks if the entered user identity is correct and matches the generated identity. It returns true if the identities are the same and false otherwise.
Example
KeyGenServices keyGenServices = new KeyGenServices();
// Generate Encrypted User Identity
string encryptedUserIdentity = keyGenServices.GetEncryptedUserIdentity();
// Verify User Identity
bool isVerified = keyGenServices.IsVerifyUserIdentity(enteredUserIdentity);
if (isVerified)
{
// Allow access to the application
Console.WriteLine("Access Granted!");
}
else
{
// Deny access to the application
Console.WriteLine("Access Denied!");
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Summary of changes made in this release of the package.