LibAES-CTR 1.1.2

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

About

Managed .Net (.NET 8 and .NET 10) compatible AES-CTR cipher written in C# (using Aes.Create for AES operations)

How to use

using CS_AES_CTR;

byte[] mySimpleTextAsBytes = Encoding.ASCII.GetBytes("Plain text I want to encrypt");

// In real world, generate these with cryptographically secure pseudo-random number generator (CSPRNG)
byte[] key = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
byte[] initialCounter = new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05 };

// Encrypt
AES_CTR forEncrypting = new AES_CTR(key, initialCounter);
byte[] encryptedContent = new byte[mySimpleTextAsBytes.Length];
forEncrypting.EncryptBytes(encryptedContent, mySimpleTextAsBytes);

// Decrypt
AES_CTR forDecrypting = new AES_CTR(key, initialCounter);
byte[] decryptedContent = new byte[encryptedContent.Length];
forDecrypting.DecryptBytes(decryptedContent, encryptedContent);

You can try out the code in .NET Fiddle

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 (2)

Showing the top 2 NuGet packages that depend on LibAES-CTR:

Package Downloads
LibCommonSecrets

.Net 10 compatible managed CommonSecrets library implementation in C#

Wabbajack.Downloaders.Bethesda

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on LibAES-CTR:

Repository Stars
wabbajack-tools/wabbajack
An automated Modlist installer for various games.
Version Downloads Last Updated
1.1.2 109 7/1/2026
1.1.1 1,267 11/13/2025
1.1.0 9,054 12/8/2024
1.0.1 4,084 11/15/2023
1.0.0 39,509 5/24/2022
0.9.6 7,937 1/7/2021
0.9.5 1,086 9/17/2020
0.9.4 868 5/30/2020
0.9.3 1,102 5/17/2020
0.9.2 1,249 1/12/2020
0.9.1 1,903 1/26/2019
0.9.0 1,248 11/26/2018

## Version 1.1.2 (released 2026-07-01)
- Enable `Nullable` (**FEATURE**/**BREAKING**)

## Version 1.1.1 (released 2025-11-13)
- Support net10.0

## Version 1.1.0 (released 2024-12-08)
- Drop support for .NET Standard and .NET 6 (**BREAKING**)
- SIMD support for XOR operation (**PERFORMANCE**)

## Version 1.0.1 (released 2023-11-15)
- Include nuget-readme
- Support net8.0
- Trimmable library

## Version 1.0.0 (released 2022-05-24)
- Support net6.0
- Deterministic build

## Version 0.9.6 (released 2021-01-07)
- WorkStreams optimization, thanks to **Akintos** (**PERFORMANCE**)

## Version 0.9.5 (released 2020-09-17)
- Support Little endian counter bytes, thanks to **p-hu** (**FEATURE**)

## Version 0.9.4 (released 2020-05-30)
- Reduce memory allocations (**PERFORMANCE**)

## Version 0.9.3 (released 2020-05-17)
- Support stream encryption/decryption (**FEATURE**)
- Add async versions of stream processing (**FEATURE**)

## Version 0.9.2 (released 2020-01-12)
- Generate documentation (**FEATURE**)

## Version 0.9.1 (released 2019-01-26)
- AES_CTR implements IDisposable (**FEATURE**)

## Version 0.9.0 (released 2018-11-26)
- First nuget release