Versions in this module Expand all Collapse all v0 v0.1.0 Oct 21, 2024 Changes in this version + var ErrUnsupported = errors.New("hash type not supported") + func Equals(src, dst string) bool + func HelpString(indent int) string + func Stream(r io.Reader) (map[Type]string, error) + func StreamTypes(r io.Reader, set Set) (map[Type]string, error) + func Width(hashType Type, base64Encoded bool) int + type MultiHasher struct + func NewMultiHasher() *MultiHasher + func NewMultiHasherTypes(set Set) (*MultiHasher, error) + func (m *MultiHasher) Size() int64 + func (m *MultiHasher) Sum(hashType Type) ([]byte, error) + func (m *MultiHasher) SumString(hashType Type, base64Encoded bool) (string, error) + func (m *MultiHasher) Sums() map[Type]string + func (m *MultiHasher) Write(p []byte) (n int, err error) + type Set int + func NewHashSet(t ...Type) Set + func Supported() Set + func (h *Set) Add(t ...Type) Set + func (h Set) Array() (ht []Type) + func (h Set) Contains(t Type) bool + func (h Set) Count() int + func (h Set) GetOne() Type + func (h Set) Overlap(t Set) Set + func (h Set) String() string + func (h Set) SubsetOf(c Set) bool + type Type int + var CRC32 Type + var MD5 Type + var None Type + var SHA1 Type + var SHA256 Type + var Whirlpool Type + func RegisterHash(name, alias string, width int, newFunc func() hash.Hash) Type + func SupportOnly(new []Type) (old []Type) + func (h *Type) Set(s string) error + func (h Type) String() string + func (h Type) Type() string