Super simple encryption in C#.
$ dotnet add package EncryptionMaidSuper simple encryption in C#.
AES-GCM ensures confidentiality and authenticity:
using EncryptionMaid;
string Input = "my data to encrypt";
string Password = "my super secret password";
byte[] EncryptedBytes = AesGcmMaid.Encrypt(Input, Password);
string DecryptedInput = AesGcmMaid.Decrypt(EncryptedBytes, Password);
AES-CBC ensures confidentiality but not authenticity:
using EncryptionMaid;
string Input = "my data to encrypt";
string Password = "my super secret password";
byte[] EncryptedBytes = AesCbcMaid.Encrypt(Input, Password);
string DecryptedInput = AesCbcMaid.Decrypt(EncryptedBytes, Password);
This implementation has not been audited, so it should not be used for high-stakes encryption.