Documentation ¶
Index ¶
- func APHash[T typez.StrOrBytes](s T) uint32
- func APHash64[T typez.StrOrBytes](s T) uint64
- func BKDRHash[T typez.StrOrBytes](s T) uint32
- func BKDRHash64[T typez.StrOrBytes](s T) uint64
- func DJBHash[T typez.StrOrBytes](s T) uint32
- func DJBHash64[T typez.StrOrBytes](s T) uint64
- func ELFHash[T typez.StrOrBytes](s T) uint32
- func ELFHash64[T typez.StrOrBytes](s T) uint64
- func Hmac[T, E typez.StrOrBytes](key T, data E, h func() hash.Hash) []byte
- func HmacToString[T, E typez.StrOrBytes](key T, data E, h func() hash.Hash) string
- func JSHash[T typez.StrOrBytes](s T) uint32
- func JSHash64[T typez.StrOrBytes](s T) uint64
- func Md5[T typez.StrOrBytes](s T) []byte
- func Md5Stream(s io.Reader) ([]byte, error)
- func Md5ToString[T typez.StrOrBytes](s T) string
- func PJWHash[T typez.StrOrBytes](s T) uint32
- func PJWHash64[T typez.StrOrBytes](s T) uint64
- func RSHash[T typez.StrOrBytes](s T) uint32
- func RSHash64[T typez.StrOrBytes](s T) uint64
- func SDBMHash[T typez.StrOrBytes](s T) uint32
- func SDBMHash64[T typez.StrOrBytes](s T) uint64
- func Sha1[T typez.StrOrBytes](s T) []byte
- func Sha1Stream(s io.Reader) ([]byte, error)
- func Sha1ToString[T typez.StrOrBytes](s T) string
- func Sha224[T typez.StrOrBytes](s T) []byte
- func Sha224Stream(s io.Reader) ([]byte, error)
- func Sha224ToString[T typez.StrOrBytes](s T) string
- func Sha256[T typez.StrOrBytes](s T) []byte
- func Sha256Stream(s io.Reader) ([]byte, error)
- func Sha256ToString[T typez.StrOrBytes](s T) string
- func Sha384[T typez.StrOrBytes](s T) []byte
- func Sha384Stream(s io.Reader) ([]byte, error)
- func Sha384ToString[T typez.StrOrBytes](s T) string
- func Sha512[T typez.StrOrBytes](s T) []byte
- func Sha512Stream(s io.Reader) ([]byte, error)
- func Sha512ToString[T typez.StrOrBytes](s T) string
- func Sha512_224[T typez.StrOrBytes](s T) []byte
- func Sha512_224ToString[T typez.StrOrBytes](s T) string
- func Sha512_256[T typez.StrOrBytes](s T) []byte
- func Sha512_256ToString[T typez.StrOrBytes](s T) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hmac ¶
func Hmac[T, E typez.StrOrBytes](key T, data E, h func() hash.Hash) []byte
Hmac returns the HMAC-HASH of the data.
func HmacToString ¶
func HmacToString[T, E typez.StrOrBytes](key T, data E, h func() hash.Hash) string
HmacToString returns the HMAC-HASH of the data as a string.
func Md5ToString ¶
func Md5ToString[T typez.StrOrBytes](s T) string
Md5ToString returns the MD5 checksum of the data as a string.
func Sha1Stream ¶
Sha1Stream returns the SHA-1 checksum of the data.
func Sha1ToString ¶
func Sha1ToString[T typez.StrOrBytes](s T) string
Sha1ToString returns the SHA-1 checksum of the data as a string.
func Sha224 ¶ added in v0.0.4
func Sha224[T typez.StrOrBytes](s T) []byte
Sha224 returns the SHA-224 checksum of the data.
func Sha224Stream ¶ added in v0.0.4
Sha224Stream returns the SHA-224 checksum of the data.
func Sha224ToString ¶ added in v0.0.4
func Sha224ToString[T typez.StrOrBytes](s T) string
Sha224ToString returns the SHA-224 checksum of the data as a string.
func Sha256 ¶
func Sha256[T typez.StrOrBytes](s T) []byte
Sha256 returns the SHA-256 checksum of the data.
func Sha256Stream ¶
Sha256Stream returns the SHA-256 checksum of the data.
func Sha256ToString ¶
func Sha256ToString[T typez.StrOrBytes](s T) string
Sha256ToString returns the SHA-256 checksum of the data as a string.
func Sha384 ¶ added in v0.0.4
func Sha384[T typez.StrOrBytes](s T) []byte
Sha384 returns the SHA-384 checksum of the data.
func Sha384Stream ¶ added in v0.0.4
Sha384Stream returns the SHA-384 checksum of the data.
func Sha384ToString ¶ added in v0.0.4
func Sha384ToString[T typez.StrOrBytes](s T) string
Sha384ToString returns the SHA-384 checksum of the data as a string.
func Sha512 ¶ added in v0.0.4
func Sha512[T typez.StrOrBytes](s T) []byte
Sha512 returns the SHA-512 checksum of the data.
func Sha512Stream ¶ added in v0.0.4
Sha512Stream returns the SHA-512 checksum of the data.
func Sha512ToString ¶ added in v0.0.4
func Sha512ToString[T typez.StrOrBytes](s T) string
Sha512ToString returns the SHA-512 checksum of the data as a string.
func Sha512_224 ¶ added in v0.0.4
func Sha512_224[T typez.StrOrBytes](s T) []byte
Sha512_224 returns the SHA-512/224 checksum of the data.
func Sha512_224ToString ¶ added in v0.0.4
func Sha512_224ToString[T typez.StrOrBytes](s T) string
Sha512_224ToString returns the SHA-512/224 checksum of the data as a string.
func Sha512_256 ¶ added in v0.0.4
func Sha512_256[T typez.StrOrBytes](s T) []byte
Sha512_256 returns the SHA-512/256 checksum of the data.
func Sha512_256ToString ¶ added in v0.0.4
func Sha512_256ToString[T typez.StrOrBytes](s T) string
Sha512_256ToString returns the SHA-512/256 checksum of the data as a string.
Types ¶
This section is empty.