Files
grafana/pkg/registry/apis/secret/encryption/cipher/cipher.go
T
Dana Axinte 4d8678c7f2 SecretsManager: Add base encryption manager (#107562)
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
2025-07-03 11:29:14 +01:00

19 lines
301 B
Go

package cipher
import (
"context"
)
type Cipher interface {
Encrypter
Decrypter
}
type Encrypter interface {
Encrypt(ctx context.Context, payload []byte, secret string) ([]byte, error)
}
type Decrypter interface {
Decrypt(ctx context.Context, payload []byte, secret string) ([]byte, error)
}