Files
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)
}