Files
EdgeAdmin/internal/encrypt/method.go

13 lines
215 B
Go
Raw Permalink Normal View History

2020-07-22 22:19:39 +08:00
package encrypt
type MethodInterface interface {
// 初始化
Init(key []byte, iv []byte) error
// 加密
Encrypt(src []byte) (dst []byte, err error)
// 解密
Decrypt(dst []byte) (src []byte, err error)
}