camlistore.org: camlistore.org/pkg/hashutil Index | Files

package hashutil

import "camlistore.org/pkg/hashutil"

Package hashutil contains misc hashing functions lacking homes elsewhere.

Index

Package Files

hashutil.go

func SHA1Prefix Uses

func SHA1Prefix(data []byte) string

SHA1Prefix computes the SHA-1 digest of data and returns its first twenty lowercase hex digits.

func SHA256Prefix Uses

func SHA256Prefix(data []byte) string

SHA256Prefix computes the SHA-256 digest of data and returns its first twenty lowercase hex digits.

Package hashutil imports 3 packages (graph) and is imported by 24 packages. Updated 2018-06-29. Refresh now. Tools for package owners.