Documentation
¶
Overview ¶
Package hashing provides utilities for calculating hashes.
Index ¶
Constants ¶
View Source
const ( HashMd5 = "MD5" HashSha256 = "SHA256" HashSha1 = "SHA1" HashMurmur = "Murmur" HashXXHash = "xxhash" //https://github.com/OneOfOne/xxhash )
Variables ¶
This section is empty.
Functions ¶
func CalculateHash ¶
func CalculateMD5Hash ¶
func HasLikelyHexHashStringEntropy ¶ added in v1.17.1
HasLikelyHexHashStringEntropy states whether a string has an entropy which may entail it is a hexadecimal hash This is based on the work done by `detect-secrets` https://github.com/Yelp/detect-secrets/blob/2fc0e31f067af98d97ad0f507dac032c9506f667/detect_secrets/plugins/high_entropy_strings.py#L150
func IsLikelyHexHashString ¶ added in v1.17.1
IsLikelyHexHashString determines whether the string is likely to be a hexadecimal hash or not.
Types ¶
Click to show internal directories.
Click to hide internal directories.