hashz

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Overview

Package hashz provides various utilities calculating hashes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustHash

func MustHash(h hash.Hash, buf []byte) string

MustHash completes the hash by writing the buffer, summing it, and returning it as a hex-encoded string.

func MustHashFNV1128

func MustHashFNV1128(buf []byte) string

MustHashFNV1128 calculates a 128-bit FNV-1 hash and returns it as a hex-encoded string.

func MustHashMD5

func MustHashMD5(buf []byte) string

MustHashMD5 calculates a MD5 hash and returns it as a hex-encoded string.

func MustHashSHA1

func MustHashSHA1(buf []byte) string

MustHashSHA1 calculates an SHA-1 hash and returns it as a hex-encoded string.

func MustHashSHA256

func MustHashSHA256(buf []byte) string

MustHashSHA256 calculates an SHA-256 hash and returns it as a hex-encoded string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL