{"id":51245,"library":"aead-siphash","title":"SipHash","description":"Implements SipHash-64 and SipHash-128 pseudo-random functions for message authentication and hash flooding defense.","status":"active","version":"1.0.1","language":"go","source_language":null,"source_url":"https://github.com/aead/siphash","tags":["hash","mac","siphash","authentication","dos-protection"],"install":[{"cmd":"go get github.com/aead/siphash","lang":"bash","label":"Install github.com/aead/siphash"}],"dependencies":[],"imports":[{"symbol":"siphash","correct":"github.com/aead/siphash"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/aead/siphash\"\n)\n\nfunc main() {\n\tkey := make([]byte, 16)\n\tmac := siphash.Sum64([]byte(\"message\"), key)\n\tfmt.Printf(\"%x\\n\", mac)\n}","lang":"go","description":"Computes a SipHash-64 MAC for a message."},"warnings":[{"fix":"Do not use for cryptographic signatures or where collision resistance is required.","message":"SipHash is not a cryptographic hash function and is not collision-resistant.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'-128':7 '-64':4 'authent':14,22 'defens':18 'dos':24 'dos-protect':23 'flood':17 'function':11 'hash':16,19 'implement':2 'mac':20 'messag':13 'protect':25 'pseudo':9 'pseudo-random':8 'random':10 'siphash':1,3,6,21","created_at":"2026-06-15T06:05:55.889010+00:00","updated_at":"2026-06-15T06:05:55.889010+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/aead/siphash","github":"https://github.com/aead/siphash","docs":"https://pkg.go.dev/github.com/aead/siphash#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}