HaemmerElectronics.SeppPenner.AESCryptoLib 1.2.3

Prefix Reserved
dotnet add package HaemmerElectronics.SeppPenner.AESCryptoLib --version 1.2.3
                    
NuGet\Install-Package HaemmerElectronics.SeppPenner.AESCryptoLib -Version 1.2.3
                    
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="HaemmerElectronics.SeppPenner.AESCryptoLib" Version="1.2.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HaemmerElectronics.SeppPenner.AESCryptoLib" Version="1.2.3" />
                    
Directory.Packages.props
<PackageReference Include="HaemmerElectronics.SeppPenner.AESCryptoLib" />
                    
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 HaemmerElectronics.SeppPenner.AESCryptoLib --version 1.2.3
                    
#r "nuget: HaemmerElectronics.SeppPenner.AESCryptoLib, 1.2.3"
                    
#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 HaemmerElectronics.SeppPenner.AESCryptoLib@1.2.3
                    
#: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=HaemmerElectronics.SeppPenner.AESCryptoLib&version=1.2.3
                    
Install as a Cake Addin
#tool nuget:?package=HaemmerElectronics.SeppPenner.AESCryptoLib&version=1.2.3
                    
Install as a Cake Tool

AESCryptoLib

AESCryptoLib is an assembly/ library to encrypt strings with AES.

Build status GitHub issues GitHub forks GitHub stars License: MIT Nuget NuGet Downloads Known Vulnerabilities Gitter Blogger Patreon PayPal

Available for

  • Net 8.0
  • Net 10.0

Net Core and Net Framework latest and LTS versions

Basic usage

public void Test()
{
    ICrypter cryptor = new Crypter();
    string salt = cryptor.GetRandomSalt();
    string encrypted = cryptor.Encrypt(AesKeySize.Strong, "Test", "Password", salt, 50000, HashAlgorithmName.SHA256);
    string decrypted = cryptor.Decrypt(AesKeySize.Strong, encrypted, "Password", salt, 50000, HashAlgorithmName.SHA256);
}

Store the salt value next to the encrypted data and use a new one for every secret: the key and the initialization vector are both derived from the password and the salt value, so the same pair always produces the same result.

The project can be found on nuget.

Install

dotnet add package HaemmerElectronics.SeppPenner.AESCryptoLib

Change history

See the Changelog.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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.
  • net10.0

    • No dependencies.
  • net8.0

    • 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.3 57 8/10/2026
1.2.2 315 11/24/2024
1.2.1 225 12/7/2023
1.2.0 252 11/21/2023
1.1.10 126 11/16/2023
1.1.9 234 11/13/2023
1.1.8 534 11/10/2022
1.1.7 479 11/10/2022
1.1.6 542 10/30/2022
1.1.5 637 2/9/2022
1.1.4 554 11/9/2021
1.1.3 519 8/9/2021
1.1.2 565 7/25/2021
1.1.1 598 2/21/2021
1.0.9 747 6/5/2020
1.0.8 804 11/8/2019
1.0.6 782 10/28/2019
1.0.5 875 6/23/2019
1.0.0.4 844 5/5/2019
1.0.0.3 1,629 3/15/2018
Loading failed

Version 1.2.3.0 (2026-08-10): Fixed GetRandomSalt always returning an empty string, replaced the obsolete Rfc2898DeriveBytes constructor, fixed the undisposed crypto objects, added unit tests, removed support for Net9.0, added support for Net10.0, updated NuGet packages.