Files
pg/secure/symm_algo.go
2024-03-10 15:44:06 +08:00

9 lines
209 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)
}