Checksum family

rapidhash

A wyhash-derived non-cryptographic hash tuned for speed across platforms

unverified 1 variant

Overview

rapidhash is a non-cryptographic hash function by Nicolas De Carli derived from wyhash, with changes aimed at better throughput and portability. It produces a 64-bit hash. It provides no security against a deliberate attacker.

rapidhash keeps wyhash's multiply-and-fold core, in which two 64-bit values are multiplied to 128 bits and the halves are XORed, but restructures how input is consumed across lanes and how short inputs are handled. It passes the SMHasher statistical tests. It produces a 64-bit result. It is portable. It is seedable.

NextSSL includes rapidhash version 3 wired from source and not yet verified. Like wyhash, its versions produce different outputs, so the version must be recorded alongside stored hashes. None of this provides security: the function has no secret key, and anyone can compute or deliberately collide its outputs. Use it only on trusted data.

History

2024–2024
  1. rapidhash published by Nicolas De Carli, Wang Yi

Security notes

rapidhash is not cryptographic and makes no security claims. Do not use it for authentication or with adversarial inputs.

Typical uses

Hash tables and hash mapsFast checksums for trusted data

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
Rapidhash
rapidhash
unverified out 8 rapidhash V3 (Nicolas De Carli, Wang Yi), NON-cryptographic root

Frequently asked questions

Which rapidhash variants does NextSSL include?

NextSSL registers 1 rapidhash variant: rapidhash.