Documentation ¶
Index ¶
- Variables
- func AesDeCrypt(cypted []byte, key []byte) ([]byte, error)
- func AesEcrypt(origData []byte, key []byte) ([]byte, error)
- func DePwdCode(pwd string) ([]byte, error)
- func EnPwdCode(pwd []byte) (string, error)
- func GetFileContent(src string) (body []byte, err error)
- func GetMD5(s string) string
- func GetUrlContent(src string) (body []byte, err error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) ([]byte, error)
- func ParseAccessKey(s string) (username, password string)
- func SaveFile(fpath string, fcontent []byte) (err error)
- func ShowAccessKey()
- func SliceUnique(lines []string) (lines_unique []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EncUsername string EncPassword string )
PwdKey length can be 16,24,32
View Source
var PwdKey = []byte("This(*Key*)@2021This(*Key*)@2021")
Functions ¶
func GetFileContent ¶
func GetUrlContent ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ParseAccessKey ¶
func ShowAccessKey ¶
func ShowAccessKey()
func SliceUnique ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.