Pandatech.Crypto 1.0.0

There is a newer version of this package available.
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
                    
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="Pandatech.Crypto" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pandatech.Crypto" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Pandatech.Crypto" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pandatech.Crypto --version 1.0.0
                    
#r "nuget: Pandatech.Crypto, 1.0.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.
#:package Pandatech.Crypto@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pandatech.Crypto&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Pandatech.Crypto&version=1.0.0
                    
Install as a Cake Tool

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

  1. Salt: A random salt is generated for each password hash, enhancing security.
  2. DegreeOfParallelism: 8 (configurable)
  3. Iterations: 5 (configurable)
  4. 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 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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Pandatech.Crypto:

Package Downloads
Pandatech.SharedKernel

Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.1.1 47 9/22/2025
6.1.0 264 9/17/2025
6.0.0 165 9/2/2025
5.0.3 231 8/7/2025
5.0.2 217 6/1/2025
5.0.1 182 5/1/2025
5.0.0 160 4/11/2025
4.1.2 263 2/17/2025
4.1.1 293 11/28/2024
4.1.0 147 11/26/2024
4.0.0 175 11/21/2024
3.0.0 145 10/28/2024
2.6.1 188 10/19/2024
2.6.0 143 10/19/2024
2.5.1 164 10/18/2024
2.5.0 201 6/21/2024
2.4.1 175 6/14/2024
2.4.0 184 6/13/2024
2.3.2 452 5/9/2024
2.3.1 664 3/6/2024
2.3.0 173 3/6/2024
2.2.11 165 3/6/2024
2.2.10 168 3/1/2024
2.2.9 193 2/17/2024
2.2.8 156 2/17/2024
2.2.7 176 2/12/2024
2.2.6 190 1/23/2024
2.2.5 156 1/23/2024
2.2.4 172 1/19/2024
2.2.3 503 11/29/2023
2.2.2 147 11/29/2023
2.2.1 274 11/23/2023
2.2.0 186 11/21/2023
2.1.10 183 11/11/2023
2.1.9 161 11/9/2023
2.1.8 260 11/7/2023
2.1.7 233 11/6/2023
2.1.6 149 11/3/2023
2.1.5 175 11/2/2023
2.1.4 161 11/1/2023
2.1.3 169 11/1/2023
2.1.2 173 10/31/2023
2.1.1 167 10/31/2023
2.1.0 166 10/31/2023
2.0.0 356 10/30/2023
1.1.6 182 10/30/2023
1.1.5 171 10/27/2023
1.1.4 160 10/27/2023
1.1.3 188 10/27/2023
1.1.2 203 10/16/2023
1.1.1 199 10/14/2023
1.1.0 192 10/14/2023
1.0.0 192 10/13/2023