hash

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(S1 string) string

func Base64Encode

func Base64Encode(S1 string) string

func HMACSHA512Encode

func HMACSHA512Encode(s string, key string) string

func MD5Encode

func MD5Encode(S1 string) string

func MD5EncodeByte

func MD5EncodeByte(B1 []byte) string

func MD5EncodeFile

func MD5EncodeFile(file_path string) (r string)

func SHA1Encode

func SHA1Encode(S1 string) string

func SHA256Encode

func SHA256Encode(S1 string) string

func TryBase64Decode

func TryBase64Decode(S1 string) (r string)

尝试 Base64 解码,失败时返回 原字符串 而不是 空

func TryBase64DecodeRawURL

func TryBase64DecodeRawURL(S1 string) (r string)

尝试 Base64 RawURL 解码,失败时返回 原字符串 而不是 空

Types

This section is empty.

Jump to

Keyboard shortcuts

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