utils

package
v0.0.0-...-55e5bf4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atob

func Atob(s interface{}) string

Base64解码

func Base32Decode

func Base32Decode(s interface{}) string

Base32解码

func Base32Encode

func Base32Encode(s interface{}) string

Base32编码

func Base64Decode

func Base64Decode(s interface{}) string

Base64解码,同上

func Base64Encode

func Base64Encode(s interface{}) string

Base64编码,同上

func Btoa

func Btoa(s interface{}) string

Base64编码

func DecodeURI

func DecodeURI(s interface{}) string

URI解码

func DecodeURIComponent

func DecodeURIComponent(s interface{}) string

URI解码

func EncodeURI

func EncodeURI(s interface{}) string

URI编码

func EncodeURIComponent

func EncodeURIComponent(s interface{}) string

URI编码

func Escape

func Escape(s interface{}) string

中文转Unicode

func HexDecode

func HexDecode(s interface{}) []byte

Hex解码

func HexEncode

func HexEncode(s interface{}) []byte

Hex编码

func HmacMD4

func HmacMD4(s, key interface{}) []byte

HmacMD4加密

func HmacMD5

func HmacMD5(s, key interface{}) []byte

HmacMD5加密

func HmacRIPEMD160

func HmacRIPEMD160(s, key interface{}) []byte

HmacRIPEMD160加密

func HmacSHA1

func HmacSHA1(s, key interface{}) []byte

HmacSHA1加密

func HmacSHA224

func HmacSHA224(s, key interface{}) []byte

HmacSHA224加密

func HmacSHA256

func HmacSHA256(s, key interface{}) []byte

HmacSHA256加密

func HmacSHA384

func HmacSHA384(s, key interface{}) []byte

HmacSHA384加密

func HmacSHA512

func HmacSHA512(s, key interface{}) []byte

HmacSHA512加密

func MD4

func MD4(s interface{}) string

MD4加密

func MD5

func MD5(s interface{}) string

MD5加密

func Marshal

func Marshal(data interface{}) ([]byte, error)

Marshal 避免json.Marshal对 "<", ">", "&" 等字符进行HTML编码

func RC4

func RC4(data, key interface{}) []byte

RC4加密

func RIPEMD160

func RIPEMD160(s interface{}) string

RIPEMD160加密

func SHA1

func SHA1(s interface{}) []byte

SHA1加密

func SHA224

func SHA224(s interface{}) []byte

SHA224加密

func SHA256

func SHA256(s interface{}) []byte

SHA256加密

func SHA384

func SHA384(s interface{}) []byte

SHA384加密

func SHA512

func SHA512(s interface{}) []byte

SHA512加密

func UnEscape

func UnEscape(s interface{}) string

Unicode转中文

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL