Checksums and non-cryptographic hashes

Rapidhash

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

unverified Root API only Not cryptographic
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Rapidhash

Rapidhash is a checksum / non-cryptographic hash. It produces an 8-byte (64-bit) output. Its registry entry cites rapidhash V3 (Nicolas De Carli, Wang Yi), NON-cryptographic. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

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

Sizes

FieldBytesMeaning
out8Output

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
value = root.call("checksum", "rapidhash", None, b"123456789")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently asked questions

What is Rapidhash?

Rapidhash is a checksum in the rapidhash family. rapidhash is a non-cryptographic hash function by Nicolas De Carli derived from wyhash, with changes aimed at better throughput and portability.

What are the Rapidhash sizes?

In NextSSL, Rapidhash uses: output 8 bytes.

Who designed Rapidhash and when?

Rapidhash belongs to the rapidhash family, first published in 2024 by Nicolas De Carli, Wang Yi.

Which standards define Rapidhash?

Rapidhash is referenced by rapidhash V3 (Nicolas De Carli, Wang Yi), NON-cryptographic.

Is Rapidhash safe to use?

Rapidhash is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).