Documentation
¶
Index ¶
- Constants
- func AesDecrypt(encrypted, key []byte) (bts []byte, err error)
- func AesEncrypt(origData, key []byte) (bts []byte, err error)
- func Ascii85Decode(data []byte) []byte
- func Ascii85Encode(data []byte) []byte
- func Base64Decode(data []byte) []byte
- func Base64DecodeString(data string) []byte
- func Base64Encode(data []byte) []byte
- func Base64EncodeString(data []byte) string
- func CsvToMap(reader io.Reader) (records []map[string]any)
- func FNVHashU64(src []byte) uint64
- func GenToken(data *JwtData, secret []byte) (string, error)
- func GenTokenExpire(data *JwtData, secret []byte, expire time.Time) (string, error)
- func GetExpireDate() time.Time
- func Md5(input []byte) []byte
- func Md5String(input []byte) string
- func PKCS5Padding(ciphers []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func RowsToMap(rows [][]string) (records []map[string]any)
- func StringHash64(input string) int64
- func StringHashU64(src string) uint64
- type JwtClaims
- type JwtData
Constants ¶
View Source
const (
DefaultJwtExpire = time.Hour * 720
)
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
func AesEncrypt ¶
func Ascii85Decode ¶
func Ascii85Encode ¶
func Base64Decode ¶
func Base64DecodeString ¶
func Base64Encode ¶
func Base64EncodeString ¶
func FNVHashU64 ¶
func GenTokenExpire ¶
func GetExpireDate ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func StringHash64 ¶
func StringHashU64 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.