mirror of
https://github.com/sigcn/pg.git
synced 2025-10-24 17:00:34 +08:00
9 lines
209 B
Go
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)
|
|
}
|