crypto

package
v0.0.0-...-3df7fca Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTeaStr

func DecodeTeaStr(src []byte, pad int, teaKey string) ([]byte, error)

func EncodePwd

func EncodePwd(password, ak string) string

func EncodeTeaStr

func EncodeTeaStr(src []byte, teaKey string) ([]byte, int, error)

func GetTeaPadLen

func GetTeaPadLen(length int) int

func Hmac

func Hmac(key, content []byte, hFunc func() hash.Hash) string

func MD5

func MD5(content []byte) string

func SHA1

func SHA1(content []byte) string

func SHA512

func SHA512(content []byte) string

func TeaHexDecode

func TeaHexDecode(hexBody []byte, bLen int, teaKey string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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