Package passwordreset implements creation and verification of secure tokens useful for implementation of "reset forgotten password" feature in web applications. This package generates and verifies signed one-time tokens that can be embedded in a link sent to users when they initiate the password reset procedure. When a user changes their password, or when the expiry time passes, the token becomes invalid. Secure token format: where expiration time is the number of seconds since Unix epoch UTC indicating when this token must expire (4 bytes, big-endian, uint32), login is a byte string of arbitrary length (at least 1 byte, not null-terminated), and signature is 32 bytes of HMAC-SHA256(expiration_time || login, k), where k = HMAC-SHA256(expiration_time || login, userkey), where userkey = HMAC-SHA256(password value, secret key), where password value is any piece of information derived from user's password, which will change once the user changes their password (for example, a hash of the password), and secret key is an application-specific secret key. Password value is used to make tokens one-time, that is, once a user changes their password, the token which they used to do a reset, becomes invalid. Usage example: Your application must have a strong secret key for password reset purposes. This key will be used to generate and verify password reset tokens. (If you already have a secret key, for example, for authcookie package, it's better not to reuse it, just use a different one.) Create a function that will query your users database and return some password-related value for the given login. A password-related value means some value that will change once a user changes their password, for example: a password hash, a random salt used to generate it, or time of password creation. This value, mixed with app-specific secret key, will be used as a key for password reset token, thus it will be kept secret. When a user initiates password reset (by entering their login, and maybe answering a secret question), generate a reset token: Send a link with this token to the user by email, for example: https://www.example.com/reset?token=Talo3mRjaGVzdITUAGOXYZwCMq7EtHfYH4ILcBgKaoWXDHTJOIlBUfcr Once a user clicks this link, read a token from it, then verify this token by passing it to VerifyToken function along with the getPasswordHash function, and an app-specific secret key: If verification succeeded, allow to change password for the returned login.
Package md4 implements the MD4 hash algorithm as defined in RFC 1320.
Package dht implements a distributed hash table that satisfies the ipfs routing interface. This DHT is modeled after kademlia with S/Kademlia modifications.
Package maglev implements maglev consistent hashing http://research.google.com/pubs/pub44824.html
Package dht implements a distributed hash table that satisfies the ipfs routing interface.
Package muhash provides an implementation of a Multiplicative Hash, a cryptographic data structure that allows you to have a rolling hash function that you can add and remove elements from, without the need to re-serialize and re-hash the whole data set.
Murmur3 32bit hash function based on http://en.wikipedia.org/wiki/MurmurHash
Package ringpop is a library that maintains a consistent hash ring atop a gossip-based membership protocol.
Package blake3 implements the BLAKE3 cryptographic hash function.
Package lmget resolves open models at their sources, downloads them with resumable ranged requests, verifies every byte against the hash the source publishes, keeps them in a content-addressed store and exports them to the layouts runtimes read (Hugging Face cache, Ollama, plain directory).
Package fpbot generates the Prelude (Seated) SDK hash-input buffer from per-browser parameters, and computes the SDK's HighwayHash-128 exactly as the wasm core does (4-lane layout, zero key).
Package core implements a custom, mmap-backed open-addressing hash table tuned for fixed-size keys/values, read-heavy workloads, and real-time updates at a scale larger than RAM.
Package pdq implements the PDQ perceptual image hash.
Package skein implements the Skein-512 hash (Skein 1.3, the NIST SHA-3 round-3 candidate by Ferguson, Lucks, Schneier, Whiting et al.) in pure Go, with the optional key (MAC) pre-processing and an arbitrary output length.
Package tmk implements TMK+PDQF, a video-similarity hash.
perceptual hashes a media file, or scores how alike two of them are.
Package media decodes a media file into what a perceptual hash needs: mono PCM at a chosen sample rate, or video frames resampled to a chosen rate by time.
Package hieraeyaml is a pure-Go (no cgo) adapter mirroring the Ruby hiera-eyaml gem: it reads eyaml YAML data, decrypts the ENC[...] scalars it contains, and exposes an "eyaml" data_hash backend for the github.com/go-hiera/hiera engine.
Package tally will be a tamper-evident audit log: a hash chain, signed checkpoints anchored off the host, offline verification, and crypto-shredding.
Package edonr implements the Edon-R' hash function (512-bit variant), the function behind the OpenZFS checksum=edonr property, including the keyed ("salted") form ZFS computes for a pool with a checksum salt.
Package password hashes and verifies passwords with Argon2id, encoded as PHC strings: $argon2id$v=19$m=<KiB>,t=<iterations>,p=<lanes>$<salt>$<hash>.
Package streebog implements the GOST R 34.11-2012 hash function (Streebog, RFC 6986) with 256-bit and 512-bit digests, in pure Go.
Package blake3 implements the BLAKE3 cryptographic hash function.
Package constants holds the names and the bounds that TACRA sets and that every implementation shares: the Credential Types, the Freshness Kinds, the Credential Acquisition Modes, the RATS models, the bounds of a present-nonce Freshness Handle, and the names of the method and of the hash of the Binding.
Package whirlpool implements the Whirlpool hash function (ISO/IEC 10118-3, 512-bit digest) in pure Go: the final 2003 version, with the tweaked S-box and the diffusion matrix cir(1, 1, 4, 1, 8, 5, 2, 9) of Barreto and Rijmen.
rex-fingers shows letter hints over the paths, URLs, hashes, and other strings on a Rex pane, and copies the one you pick, like tmux-fingers.
Package bloom implements Bloom Filter using double hashing
Package siphash implements the SipHash-64 and SipHash-128 pseudo-random-functions - with the recommended parameters: c = 2 and d = 4. SipHash computes a message authentication code (MAC) from a variable-length message and a 128 bit secret key. SipHash was designed to be efficient, even for short inputs, with performance comparable to non-cryptographic hash functions. SipHash cannot be used as a cryptographic hash function. Neither SipHash-64 nor SipHash-128 are strong collision resistant. SipHash was designed to defend hash flooding DoS attacks. SipHash-64 can be used as hashing scheme within hash maps or other key-value data structures. SipHash-128 can be used to compute a 128 bit authentication tag for messages.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.