Files
pg/secure/symm_algo.go
2024-04-29 21:24:32 +08:00

10 lines
239 B
Go

package secure
type ProvideSecretKey func(pubKey string) ([]byte, error)
type SymmAlgo interface {
Encrypt(data []byte, pubKey string) ([]byte, error)
Decrypt(data []byte, pubKey string) ([]byte, error)
SecretKey() ProvideSecretKey
}