Documentation ¶
Overview ¶
aes crc32 des md5 sha1 等加解密算法
Index ¶
- func AesCFB加密(plainText []byte, key []byte, padding *int, iv ...[]byte) ([]byte, error)
- func AesCFB解密(cipherText []byte, key []byte, unPadding int, iv ...[]byte) ([]byte, error)
- func Aes加密(plainText []byte, key []byte, iv ...[]byte) ([]byte, error)
- func Aes解密(cipherText []byte, key []byte, iv ...[]byte) ([]byte, error)
- func Crc32加密(v interface{}) uint32
- func DesECB加密(plainText []byte, key []byte, padding int) ([]byte, error)
- func DesECB解密(cipherText []byte, key []byte, padding int) ([]byte, error)
- func Md5加密(data interface{}) (encrypt string, err error)
- func Md5加密从文件(path string) (encrypt string, err error)
- func Sha1加密(v interface{}) string
- func Sha1加密从文件(path string) (encrypt string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.