LibAES-CTR
1.2.0
dotnet add package LibAES-CTR --version 1.2.0
NuGet\Install-Package LibAES-CTR -Version 1.2.0
<PackageReference Include="LibAES-CTR" Version="1.2.0" />
<PackageVersion Include="LibAES-CTR" Version="1.2.0" />
<PackageReference Include="LibAES-CTR" />
paket add LibAES-CTR --version 1.2.0
#r "nuget: LibAES-CTR, 1.2.0"
#:package LibAES-CTR@1.2.0
#addin nuget:?package=LibAES-CTR&version=1.2.0
#tool nuget:?package=LibAES-CTR&version=1.2.0
About
Managed .Net (.NET 10 and .NET 11) 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. net11.0 is compatible. |
-
net10.0
- No dependencies.
-
net11.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.2.0 | 95 | 11/11/2026 |
| 1.1.2 | 1,819 | 7/1/2026 |
| 1.1.1 | 2,083 | 11/13/2025 |
| 1.1.0 | 10,663 | 12/8/2024 |
| 1.0.1 | 4,330 | 11/15/2023 |
| 1.0.0 | 40,944 | 5/24/2022 |
| 0.9.6 | 8,031 | 1/7/2021 |
| 0.9.5 | 1,129 | 9/17/2020 |
| 0.9.4 | 910 | 5/30/2020 |
| 0.9.3 | 1,177 | 5/17/2020 |
| 0.9.2 | 1,295 | 1/12/2020 |
| 0.9.1 | 1,949 | 1/26/2019 |
| 0.9.0 | 1,296 | 11/26/2018 |
## Version 1.2.0 (released 2026-11-11)
- Support net11.0
- Drop support for .NET 8 (**BREAKING**)
## 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