Documentation ¶
Index ¶
- func Decrypt(text []byte, key []byte, ivDes ...byte) ([]byte, error)
- func DecryptToString(text string, key string, iv ...byte) (string, error)
- func Encrypt(text []byte, key []byte, ivDes ...byte) ([]byte, error)
- func EncryptToString(text string, key string, iv ...byte) (string, error)
- func EncryptToStringWithEnv(text string) string
- func PKCS5Padding(plainText []byte, blockSize int) []byte
- func PKCS5UnPadding(plainText []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptToStringWithEnv ¶ added in v1.1.3
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.