LibAES-CTR
1.1.2
dotnet add package LibAES-CTR --version 1.1.2
NuGet\Install-Package LibAES-CTR -Version 1.1.2
<PackageReference Include="LibAES-CTR" Version="1.1.2" />
<PackageVersion Include="LibAES-CTR" Version="1.1.2" />
<PackageReference Include="LibAES-CTR" />
paket add LibAES-CTR --version 1.1.2
#r "nuget: LibAES-CTR, 1.1.2"
#:package LibAES-CTR@1.1.2
#addin nuget:?package=LibAES-CTR&version=1.1.2
#tool nuget:?package=LibAES-CTR&version=1.1.2
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 | Versions 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. |
-
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 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