Proculite.Common/Proculite.Common/Security/Cryptography/SimpleAes.cs
Filip Strajnar 458acfcd85 Created SymmetricCryptoStream and SimpleAes classes.
These classes allow for convenient encryption with AES.
2024-09-30 21:31:26 +02:00

17 lines
325 B
C#

using System.Security.Cryptography;
namespace Proculite.Common.Security.Cryptography
{
public static class SimpleAes
{
public static Aes Create(byte[] key, byte[] iv)
{
Aes aes = Aes.Create();
aes.IV = iv;
aes.Key = key;
return aes;
}
}
}