/libaes6

Simplified C# AES encryption and decryption library for .NET 6

Primary LanguageC#MIT LicenseMIT

LibAES

Simplified C# AES encryption and decryption library.

Requirements

.NET 6

How to use?

Text Encryption

string mytext = "This is my text!";
string encrypted = AesLib.EncryptText(mytext, "your password");

Text Decryption

string mytext = "*****..."; // Base64
string encrypted = AesLib.DecryptText(mytext, "your password");

File Encryption

string file = "C:\\dir\\file.docx";
string encryptedFile = "C:\\dir\\encrypted.docx";
AesLib.EncryptFile(file, encryptedFile, "your password");

File Decryption

string encryptedFile = "C:\\dir\\encrypted.docx";
string file = "C:\\dir\\file.docx";
AesLib.DecryptFile(encryptedFile, file, "your password");