mirror of
https://github.com/sigcn/pg.git
synced 2025-10-23 03:09:23 +08:00
10 lines
239 B
Go
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
|
|
}
|