HighwayHash is a fast, keyed hash function intended for scenarios where you need strong, DoS-resistant hashing without the full overhead of a general-purpose cryptographic hash. It’s designed to defeat hash-flooding attacks by mixing input with wide SIMD operations and a branch-free inner loop, so adversaries can’t cheaply craft many colliding keys. The implementation targets multiple CPU families with vectorized code paths while keeping a portable fallback, yielding high throughput across platforms. It exposes simple one-shot and streaming APIs, so you can hash short keys or long byte streams with the same function. Typical uses include protecting hash tables that store untrusted keys and authenticating short-lived messages or records in storage systems. Although not a replacement for collision-resistant digests like SHA-2/3, it strikes a pragmatic balance of speed, simplicity, and resistance to common abuse patterns seen in production backends.

Features

  • Keyed, SIMD-accelerated hash to resist hash-flooding
  • Portable implementation with optimized paths for common CPUs
  • One-shot and incremental/streaming APIs for arbitrary input sizes
  • Fixed-width outputs suitable for table keys and fingerprints
  • Deterministic results across platforms for stable storage
  • Minimal dependencies and easy embedding in C/C++ projects

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow HighwayHash

HighwayHash Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of HighwayHash!

Additional Project Details

Programming Language

C++

Related Categories

C++ Libraries

Registered

2025-10-10