Pandatech.Crypto
1.0.0
See the version list below for details.
dotnet add package Pandatech.Crypto --version 1.0.0
NuGet\Install-Package Pandatech.Crypto -Version 1.0.0
<PackageReference Include="Pandatech.Crypto" Version="1.0.0" />
paket add Pandatech.Crypto --version 1.0.0
#r "nuget: Pandatech.Crypto, 1.0.0"
// Install Pandatech.Crypto as a Cake Addin #addin nuget:?package=Pandatech.Crypto&version=1.0.0 // Install Pandatech.Crypto as a Cake Tool #tool nuget:?package=Pandatech.Crypto&version=1.0.0
PandaTech.Crypto NuGet Package
PandaTech.Crypto is a .NET library designed to simplify AES256 encryption, decryption, and Argon2id hashing for secure password management. This library aims to provide a straightforward interface for developers while maintaining optimal security configurations for Argon2id.
Installation
To use PandaTech.Crypto
in your project, install the NuGet package using the following command in the Package Manager Console:
bash Copy code Install-Package PandaTech.Crypto
Or, search for "PandaTech.Crypto" in the NuGet Package Manager in Visual Studio and install it from there.
AES256 Encryption and Decryption
Usage csharp Copy code
// Example usage for encryption
var encryptedData = Aes256.Encrypt("yourPlainText");
// Example usage for decryption
var decryptedData = Aes256.Decrypt(encryptedData);
Configuration
Key: The AES256 key is retrieved from the environment variable AES_KEY
. Make sure to set this variable in your environment.
Argon2id Hashing
Usage
csharp Copy code
// Example usage for hashing
var hashedPassword = Argon2Id.HashPassword("yourPassword");
// Example usage for verifying a hash
var isPasswordValid = Argon2Id.VerifyHash("yourPassword", hashedPassword);
Configuration
- Salt: A random salt is generated for each password hash, enhancing security.
- DegreeOfParallelism: 8 (configurable)
- Iterations: 5 (configurable)
- MemorySize: 128 MB (configurable)
Optimal Configurations
The configurations provided by PandaTech.Crypto for Argon2id are optimized for a wide range of server environments. Extensive testing has been conducted, including successful login tests on a server with 1 CPU core and 1 GB of RAM, completing the login process in approximately 1 second.
Notes
Make sure to set the AES_KEY
environment variable for AES256 operations.
The library provides default secure configurations for Argon2id, reducing the need for manual adjustments.
Contributions
Contributions to the PandaTech.Crypto library are welcome! Feel free to report issues, suggest improvements, or submit pull requests on GitHub.
License PandaTech.Crypto is licensed under the MIT License.
PandaTech.Crypto - Simplifying AES256 Encryption, Decryption, and Argon2id Hashing.
Your Security, Our Priority.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- Konscious.Security.Cryptography.Argon2 (>= 1.3.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Pandatech.Crypto:
Package | Downloads |
---|---|
PandaTech.IEnumerableFilters
This NuGet helps with filtering tables. |
|
Pandatech.EFCoreQueryMagic
Unlock the full potential of your Entity Framework Core applications with Pandatech.EFCoreQueryMagic. This innovative package empowers developers to seamlessly create dynamic, complex queries and filters for SQL tables without diving deep into the intricacies of LINQ or manual query construction. Designed to enhance productivity and maintainability, EFCoreQueryMagic automates the translation of front-end filter requests into optimized, ready-to-execute EF Core queries. Embrace the magic of streamlined data retrieval and manipulation, and elevate your applications to new heights of efficiency and performance. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.0.0 | 72 | 10/28/2024 |
2.6.1 | 96 | 10/19/2024 |
2.6.0 | 87 | 10/19/2024 |
2.5.1 | 102 | 10/18/2024 |
2.5.0 | 143 | 6/21/2024 |
2.4.1 | 106 | 6/14/2024 |
2.4.0 | 117 | 6/13/2024 |
2.3.2 | 239 | 5/9/2024 |
2.3.1 | 599 | 3/6/2024 |
2.3.0 | 122 | 3/6/2024 |
2.2.11 | 112 | 3/6/2024 |
2.2.10 | 114 | 3/1/2024 |
2.2.9 | 140 | 2/17/2024 |
2.2.8 | 99 | 2/17/2024 |
2.2.7 | 126 | 2/12/2024 |
2.2.6 | 138 | 1/23/2024 |
2.2.5 | 108 | 1/23/2024 |
2.2.4 | 119 | 1/19/2024 |
2.2.3 | 474 | 11/29/2023 |
2.2.2 | 117 | 11/29/2023 |
2.2.1 | 224 | 11/23/2023 |
2.2.0 | 150 | 11/21/2023 |
2.1.10 | 142 | 11/11/2023 |
2.1.9 | 130 | 11/9/2023 |
2.1.8 | 224 | 11/7/2023 |
2.1.7 | 202 | 11/6/2023 |
2.1.6 | 116 | 11/3/2023 |
2.1.5 | 140 | 11/2/2023 |
2.1.4 | 124 | 11/1/2023 |
2.1.3 | 132 | 11/1/2023 |
2.1.2 | 131 | 10/31/2023 |
2.1.1 | 132 | 10/31/2023 |
2.1.0 | 131 | 10/31/2023 |
2.0.0 | 321 | 10/30/2023 |
1.1.6 | 145 | 10/30/2023 |
1.1.5 | 138 | 10/27/2023 |
1.1.4 | 122 | 10/27/2023 |
1.1.3 | 148 | 10/27/2023 |
1.1.2 | 161 | 10/16/2023 |
1.1.1 | 158 | 10/14/2023 |
1.1.0 | 151 | 10/14/2023 |
1.0.0 | 148 | 10/13/2023 |