hashing

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher interface {
	Hash(content string) (string, error)
}

Hasher hashes a string into a hex-encoded digest.

NOTE: implementations of this interface vary in cryptographic strength. The sha256 and sha512 implementations are cryptographic hashes; the adler32, crc64, and fnv implementations are NON-CRYPTOGRAPHIC checksums and MUST NOT be selected for security, password, or tamper-resistance purposes. Choose the implementation deliberately.

Directories

Path Synopsis
Package adler32 implements hashing.Hasher using the Adler-32 checksum.
Package adler32 implements hashing.Hasher using the Adler-32 checksum.
Package crc64 implements hashing.Hasher using the CRC-64 (ISO) checksum.
Package crc64 implements hashing.Hasher using the CRC-64 (ISO) checksum.
Package fnv implements hashing.Hasher using the FNV-1a (128-bit) hash.
Package fnv implements hashing.Hasher using the FNV-1a (128-bit) hash.

Jump to

Keyboard shortcuts

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