Documentation ¶
Index ¶
- func GetHMACHash(src []byte, hashType crypt.Hash, key []byte) (dst []byte, err error)
- func GetHMACHashEncodeToString(src []byte, hashType crypt.Hash, key []byte, encodeType crypt.Encode) (dst string, err error)
- func GetHash(src []byte, hashType crypt.Hash) (dst []byte, err error)
- func GetHashEncodeToString(src []byte, hashType crypt.Hash, encodeType crypt.Encode) (dst string, err error)
- type HMAC
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(src []byte, hashType crypt.Hash, key []byte, encodeType crypt.Encode) (dst string, err error)
GetHMACHashEncodeToString gets hmac hashed bytes with defined hashType & key then encode to string
Types ¶
type HMAC ¶
func (*HMAC) EncodeToString ¶
EncodeToString gets hashed bytes with defined hashType & key and then encode to string
Click to show internal directories.
Click to hide internal directories.