CipherCracker.ClassLibrary
1.0.1-alpha
See the version list below for details.
dotnet add package CipherCracker.ClassLibrary --version 1.0.1-alpha
NuGet\Install-Package CipherCracker.ClassLibrary -Version 1.0.1-alpha
<PackageReference Include="CipherCracker.ClassLibrary" Version="1.0.1-alpha" />
paket add CipherCracker.ClassLibrary --version 1.0.1-alpha
#r "nuget: CipherCracker.ClassLibrary, 1.0.1-alpha"
// Install CipherCracker.ClassLibrary as a Cake Addin #addin nuget:?package=CipherCracker.ClassLibrary&version=1.0.1-alpha&prerelease // Install CipherCracker.ClassLibrary as a Cake Tool #tool nuget:?package=CipherCracker.ClassLibrary&version=1.0.1-alpha&prerelease
CipherCracker
CipherCracker is a dotnet 8 library that implements common encryption and decryption algorithms.
Installation
You can install CipherCracker via NuGet package manager:
dotnet add package CipherCracker
Usage
You can reference the CipherCracker.ClassLibrary namespace in your code, initiate different cryptography manager class to perform encryption and decryption operations. For example:
Using CipherCracker.ClassLibrary;
var aesKeyBytes = CryptoUtils.GenerateRandomBytes(32); //AES-256-GCM
var aesGcmManager = new AesGcmManager(aesKeyBytes);
var plainText = "Inhale confidence, exhale doubt.";
var ivBytes = CryptoUtils.GenerateIvBytes();
var encryptedContentBytes = aesGcmManager.Encrypt(Encoding.UTF8.GetBytes(plainText), ivBytes);
var decryptedContentBytes = aesGcmManager.Decrypt(encryptedContentBytes, ivBytes);
Supported algorithms
CipherCracker currently supports the following encryption and decryption algorithms:
- AES (GCM only, at the moment)
Contribution
Any suggestions or feedback are welcome, or you can submit a pull request to improve the code.
License
CipherCracker uses the MIT license, please see the LICENSE file for details.
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. |
-
net8.0
- Portable.BouncyCastle (>= 1.9.0)
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.0.2 | 152 | 4/17/2024 |
1.0.2-alpha | 91 | 4/17/2024 |
1.0.1-alpha | 99 | 2/27/2024 |
1.0.0 | 152 | 2/27/2024 |