{"id":21380450,"url":"https://github.com/zverianskii/mojosiphash","last_synced_at":"2025-07-13T13:30:38.603Z","repository":{"id":195203939,"uuid":"692444564","full_name":"zverianskii/mojosiphash","owner":"zverianskii","description":"Siphash implementation in Mojo","archived":false,"fork":false,"pushed_at":"2023-09-16T13:57:48.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-01T11:46:14.796Z","etag":null,"topics":["modular","mojo","siphash"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zverianskii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-16T13:53:55.000Z","updated_at":"2023-09-18T11:12:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6540ee2-2232-4e1e-a48f-10d3988e8192","html_url":"https://github.com/zverianskii/mojosiphash","commit_stats":null,"previous_names":["lispsil/mojosiphash","zverianskii/mojosiphash"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zverianskii%2Fmojosiphash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zverianskii%2Fmojosiphash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zverianskii%2Fmojosiphash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zverianskii%2Fmojosiphash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zverianskii","download_url":"https://codeload.github.com/zverianskii/mojosiphash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225885810,"owners_count":17539640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["modular","mojo","siphash"],"created_at":"2024-11-22T10:40:35.688Z","updated_at":"2024-11-22T10:40:36.244Z","avatar_url":"https://github.com/zverianskii.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"mojosiphash\n====\n\nA Mojo implementation of [SipHash-2-4](https://131002.net/siphash/),\na fast short-input\n[PRF](https://en.wikipedia.org/wiki/Pseudorandom_function) with a\n128-bit key and 64-bit output.\n\nExtract from the description:\n\n    SipHash is a family of pseudorandom functions (a.k.a. keyed hash\n    functions) optimized for speed on short messages.\n\n    Target applications include network traffic authentication and defense\n    against hash-flooding DoS attacks.\n\n    SipHash is secure, fast, and simple (for real):\n    * SipHash is simpler and faster than previous cryptographic algorithms\n      (e.g. MACs based on universal hashing)\n    * SipHash is competitive in performance with insecure\n      non-cryptographic algorithms (e.g. MurmurHash)\n    * We propose that hash tables switch to SipHash as a hash\n      function. Users of SipHash already include OpenDNS, Perl 5, Ruby, or\n      Rust.\n\n\n```mojo\nfrom mojosiphash import siphash\n\nfn main():\n    let key = String(\"0123456789ABCDEF\")\n    let s = String(\"a\")\n    var sip = siphash.SipHash_2_4(key, s)\n    let res: UInt64 = sip.hash()\n    print(res) # 12398370950267227270\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzverianskii%2Fmojosiphash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzverianskii%2Fmojosiphash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzverianskii%2Fmojosiphash/lists"}