Archived
Watch
1
0
Fork
You've already forked siphash
0
Protect against HashDoS
This repository has been archived on 2026-11-21. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • D 93.5%
  • Makefile 6.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-01 23:42:07 +00:00
src Add support for Windows and macOS 2026-11-01 23:42:07 +00:00
.gitignore Initial commit 2026-10-30 23:37:33 +00:00
COPYING Initial commit 2026-10-30 23:37:33 +00:00
Makefile Initial commit 2026-10-30 23:37:33 +00:00
README.md Add support for Windows and macOS 2026-11-01 23:42:07 +00:00

A port of the reference SipHash C implementation to D, as well as a wrapper intended to facilitate its use with druntime AAs to protect against the HashDoS attack.

Usage

Copy siphash.d into your programs.

int[sipProtect!string] aa;

Compatibility

Linux, macOS and Windows (64-bit platforms only). Maintained for OpenD, YMMV with other D compilers. Don't use -ludicrous (-release).

Build

To build the test suite:

make prepare && make

Report a bug

Report bugs directly to hello@indraj.net.

For security bugs, please allow up to 48 hours for a reply and up to 90 days for the issue(s) to be confirmed and fixed before disclosing them publicly.

License

Unless otherwise noted, the contents of this repository are licensed under the Boost Software License 1.0