Documentation
¶
Overview ¶
Package utils A functions of utils.
Index ¶
- Constants
- func AesDecryption(key, iv, cipherText []byte) ([]byte, error)
- func AesEncryption(key, iv, plainText []byte) ([]byte, error)
- func GetStringEncoding(dataStr string) string
- func IsGBK(data []byte) bool
- func IsUTF8(data []byte) bool
- func PKCS5Padding(src []byte, blockSize int) []byte
- func PKCS5UnPadding(src []byte) []byte
- func UTF82GBK(src string) ([]byte, error)
- type Stack
Constants ¶
View Source
const ( // GBK ... GBK string = "GBK" // UTF8 ... UTF8 string = "UTF8" // UNKNOWN ... UNKNOWN string = "UNKNOWN" )
Variables ¶
This section is empty.
Functions ¶
func AesDecryption ¶ added in v1.0.2
AesDecryption ...
func AesEncryption ¶ added in v1.0.2
AesEncryption ...
func GetStringEncoding ¶
GetStringEncoding determine string encoding, UTF8 or GBK or UNKNOWN
func PKCS5Padding ¶ added in v1.0.2
PKCS5Padding ...
Types ¶
Click to show internal directories.
Click to hide internal directories.