github.com/TeaOSLab/EdgeNode@v1.3.8/internal/encrypt/method.go (about) 1 package encrypt 2 3 type MethodInterface interface { 4 // Init 初始化 5 Init(key []byte, iv []byte) error 6 7 // Encrypt 加密 8 Encrypt(src []byte) (dst []byte, err error) 9 10 // Decrypt 解密 11 Decrypt(dst []byte) (src []byte, err error) 12 }