Documentation ¶
Overview ¶
Package hash for crypto Hash
Index ¶
- func GetHMACHash(src []byte, hashType gocrypto.Hash, key []byte) (dst []byte, err error)
- func GetHMACHashEncodeToString(encodeType gocrypto.Encode, src []byte, hashType gocrypto.Hash, key []byte) (dst string, err error)
- func GetHash(src []byte, hashType gocrypto.Hash) (dst []byte, err error)
- func GetHashEncodeToString(encodeType gocrypto.Encode, src []byte, hashType gocrypto.Hash) (dst string, err error)
- func NewHMAC(hashType gocrypto.Hash, key []byte) *hmacHash
- func NewHash(hashType gocrypto.Hash) *hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHMACHash ¶
GetHMACHash gets hmac hashed bytes with defined hashType & key
func GetHMACHashEncodeToString ¶
func GetHMACHashEncodeToString(encodeType gocrypto.Encode, src []byte, hashType gocrypto.Hash, key []byte) (dst string, err error)
GetHMACHashEncodeToString gets hmac hashed bytes with defined hashType & key then encode to string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.