Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + const MAX_UINT32 + var POLY8 = struct{ ... } + var RawURLCache = cache.NewMemCache(cache.WithShards(128)) + func DecryptFileName(fileName string) string + func GetCheckBit(text string) byte + func GetSourceChar(index byte) byte + func RandomSecret() string + func RandomStr(length int) string + func Redirect(host string, reqPath string, realUrl string, fileSize int64) string + type AesCTR struct + func NewAesCTR(password string, sizeSalt int) (*AesCTR, error) + func (ac *AesCTR) Decrypt(message []byte) []byte + func (ac *AesCTR) Encrypt(message []byte) []byte + func (ac *AesCTR) SetPosition(position int) + type CRCn struct + func NewCRCn(num int, polynomial byte, initialValue byte) *CRCn + func (crc *CRCn) Checksum(byteArray []byte) byte + type MixBase64 struct + func NewMixBase64(passwd string, salt string) *MixBase64 + func (m *MixBase64) Decode(base64Str string) ([]byte, error) + func (m *MixBase64) Encode(data []byte) string