The EncryptionService now loads a set of keys and uses the active one to encrypt and selects key based on keyid during decryption. Introduced EncryptedValue to hold keyId and encrypted data. (There are no intermeddiate keys yet)
6 lines
No EOL
145 B
C#
6 lines
No EOL
145 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace IdentityShroud.Core.Contracts;
|
|
|
|
[Owned]
|
|
public record EncryptedValue(string KeyId, byte[] Value); |