Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type CRCn
- type MixBase64
Constants ¶
View Source
const MAX_UINT32 = 0xffffffff
Variables ¶
View Source
var POLY8 = struct { CRC8 byte CRC8_CCITT byte CRC8_DALLAS_MAXIM byte CRC8_SAE_J1850 byte CRC_8_WCDMA byte }{ CRC8: 0xd5, CRC8_CCITT: 0x07, CRC8_DALLAS_MAXIM: 0x31, CRC8_SAE_J1850: 0x1d, CRC_8_WCDMA: 0x9b, }
CRC8 Polynomial values
View Source
var RawURLCache = cache.NewMemCache(cache.WithShards(128))
****************************************************
Functions ¶
func DecryptFileName ¶
Types ¶
type AesCTR ¶
type AesCTR struct {
// contains filtered or unexported fields
}
func (*AesCTR) SetPosition ¶
Click to show internal directories.
Click to hide internal directories.