using System.Security.Cryptography;
using PixiEditor.OperatingSystem;
namespace PixiEditor.Windows;
public class DpapiEncryptor : IEncryptor
{
public byte[] Encrypt(byte[] data)
{
return ProtectedData.Protect(data, null, DataProtectionScope.CurrentUser);
}
public byte[] Decrypt(byte[] data)
{
return ProtectedData.Unprotect(data, null, DataProtectionScope.CurrentUser);
}
}