MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / toHexString

Function toHexString

hashing/md5/md5_test.go:13–15  ·  view source on GitHub ↗

Helper function to convert hash output to hex string for comparison

(hash [16]byte)

Source from the content-addressed store, hash-verified

11
12// Helper function to convert hash output to hex string for comparison
13func toHexString(hash [16]byte) string {
14 return hex.EncodeToString(hash[:])
15}
16
17// Test vectors for MD5 (from RFC 1321 and other known sources)
18var tests = []struct {

Callers 1

TestHashFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected