Documentation ¶
Index ¶
- Constants
- func AESCBCDecrypt(cryted string, key string) (string, error)
- func AESCBCEncrypt(orig string, key string) (string, error)
- func EncryptAPIResp(plainText string) string
- func GetConfigKey(appName, appEnv, target, port string) string
- func Hostname() (string, error)
- func IP() (string, error)
- func InStringArray(arr []string, str string) int
- func MD5(text string) string
- func MkdirAll(filePath string) error
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func ReadDirFiles(dir string, appName string) (result map[string]string, err error)
- func WriteFile(filePath string, content string) error
Constants ¶
View Source
const DefaultConfig = `` /* 1556-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func EncryptAPIResp ¶ added in v0.1.0
EncryptAPIResp 加密API响应内容
func GetConfigKey ¶
func InStringArray ¶ added in v0.1.0
InStringArray if str in arr, return index. or return -1
func PKCS7Padding ¶ added in v0.1.0
补码, len = 128||192||256 AES加密数据块分组长度必须为128bit(byte[16]),密钥长度可以是128bit(byte[16])、192bit(byte[24])、256bit(byte[32])中的任意一个。
func ReadDirFiles ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.