A .NET 8 library that provides a series of basic encryption and decryption utilities.
$ dotnet add package CipherCracker.ClassLibraryCipherCracker is a dotnet 8 library that implements common encryption and decryption algorithms.
You can install CipherCracker via NuGet package manager:
dotnet add package CipherCracker
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);
CipherCracker currently supports the following encryption and decryption algorithms:
Any suggestions or feedback are welcome, or you can submit a pull request to improve the code.
CipherCracker uses the MIT license, please see the LICENSE file for details.