This commit is contained in:
adlerhurst
2025-03-19 11:27:15 +01:00
parent e00ab397e2
commit d0044058ec
8 changed files with 295 additions and 25 deletions

View File

@@ -25,6 +25,8 @@ type EncryptionAlgorithm interface {
DecryptString(hashed []byte, keyID string) (string, error)
}
// CryptoValue is a struct that can be used to store encrypted values in a database.
// The struct is compatible with the [driver.Valuer] and database/sql.Scanner interfaces.
type CryptoValue struct {
CryptoType CryptoType
Algorithm string