MCPcopy Create free account
hub / github.com/corestoreio/pkg / IsHash

Function IsHash

util/validation/validator.go:761–800  ·  view source on GitHub ↗

IsHash checks if a string is a hash of type algorithm. Algorithm is one of ['md4', 'md5', 'sha1', 'sha256', 'sha384', 'sha512', 'ripemd128', 'ripemd160', 'tiger128', 'tiger160', 'tiger192', 'crc32', 'crc32b']

(str string, algorithm string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestIsHashFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsHashFunction · 0.68