Documentation ¶
Index ¶
- Constants
- func DecodeBase64(data []byte) ([]byte, error)
- func DecodeBase64FromString(data string) ([]byte, error)
- func DecodeBase64String(data string) string
- func EncodeBase64(data []byte) []byte
- func EncodeBase64String(data string) string
- func EncodeBase64ToString(data []byte) string
- func EncodeHash(s string) string
- func EncodeHash256(s string) string
- func EncodeHash512(s string) string
- func EncodeMD5(s string) string
- func ValidHash(s string) bool
- func ValidHash256(s string) bool
- func ValidHash512(s string) bool
- func ValidMD5(s string) bool
Constants ¶
const EmptyMD5Hash string = "00000000000000000000000000000000"
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
DecodeBase64 returns the bytes represented by the base64 bytes data.
func DecodeBase64FromString ¶
DecodeBase64FromString returns the bytes represented by the base64 string data.
func DecodeBase64String ¶
DecodeBase64String returns the string represented by the base64 string data.
func EncodeBase64 ¶
EncodeBase64 returns the base64 bytes encoding of bytes data.
func EncodeBase64String ¶
EncodeBase64String returns the base64 string encoding of string data.
func EncodeBase64ToString ¶
EncodeBase64ToString returns the base64 encoding of data.
func EncodeHash256 ¶
EncodeHash256 returns the sha256 encoding of s.
func EncodeHash512 ¶
EncodeHash512 returns the sha256 encoding of s.
func ValidHash256 ¶
ValidHash256 returns true if length of s same as size of a SHA256 checksum.
func ValidHash512 ¶
ValidHash512 returns true if length of s same as size of a SHA-512 checksum.
Types ¶
This section is empty.