feat(core): define primary models and services for encryption

This commit is contained in:
Stevan Freeborn
2026-02-06 06:53:20 -06:00
parent 38c311bdd1
commit f34fb5ce41
5 changed files with 63 additions and 2 deletions
@@ -0,0 +1,21 @@
namespace FiscalOS.Core.Security;
public sealed record KeyRingEntry
{
public string KeyId { get; init; }
public string Key { get; init; }
private KeyRingEntry(string keyId, string key)
{
KeyId = keyId;
Key = key;
}
public static KeyRingEntry From(string keyId, string key)
{
ArgumentNullException.ThrowIfNull(keyId);
ArgumentNullException.ThrowIfNull(key);
return new(keyId, key);
}
}