![]() |
VOOZH | about |
dotnet add package LibAES-CTR --version 1.1.1
NuGet\Install-Package LibAES-CTR -Version 1.1.1
<PackageReference Include="LibAES-CTR" Version="1.1.1" />
<PackageVersion Include="LibAES-CTR" Version="1.1.1" />Directory.Packages.props
<PackageReference Include="LibAES-CTR" />Project file
paket add LibAES-CTR --version 1.1.1
#r "nuget: LibAES-CTR, 1.1.1"
#:package LibAES-CTR@1.1.1
#addin nuget:?package=LibAES-CTR&version=1.1.1Install as a Cake Addin
#tool nuget:?package=LibAES-CTR&version=1.1.1Install as a Cake Tool
Managed .Net (.NET 8 and .NET 10) compatible AES-CTR cipher written in C# (using for AES operations)
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 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
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 |
Showing the top 1 popular GitHub repositories that depend on LibAES-CTR:
| Repository | Stars |
|---|---|
|
wabbajack-tools/wabbajack
An automated Modlist installer for various games.
|