{"id":16890830,"url":"https://github.com/boostorg/hash2","last_synced_at":"2025-07-20T09:39:45.823Z","repository":{"id":96101681,"uuid":"116489659","full_name":"boostorg/hash2","owner":"boostorg","description":"A hash function library","archived":false,"fork":false,"pushed_at":"2025-03-15T16:57:48.000Z","size":829,"stargazers_count":39,"open_issues_count":4,"forks_count":9,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-03-16T09:06:19.499Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boostorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-06T14:33:47.000Z","updated_at":"2025-03-10T05:29:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"94777af0-d9e5-41b6-8346-905f88d089e8","html_url":"https://github.com/boostorg/hash2","commit_stats":{"total_commits":152,"total_committers":3,"mean_commits":"50.666666666666664","dds":0.4013157894736842,"last_synced_commit":"db1c83bcfce555352bab4aad58009c24997c28f3"},"previous_names":["boostorg/hash2"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fhash2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fhash2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fhash2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fhash2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boostorg","download_url":"https://codeload.github.com/boostorg/hash2/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243986092,"owners_count":20379263,"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":[],"created_at":"2024-10-13T17:04:37.120Z","updated_at":"2025-07-20T09:39:45.795Z","avatar_url":"https://github.com/boostorg.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hash2, a hash function library\n\nThis library contains an extensible framework for implementing\nhashing algorithms that can support user-defined types, based on the paper\n[\"Types don't know #\"](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3980.html)\nby Howard Hinnant, Vinnie Falco and John Bytheway.\n\nIt also contains implementations of several popular hashing algorithms:\n\n* [FNV-1a](https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function)\n* [xxHash](https://cyan4973.github.io/xxHash/)\n* [SipHash](https://en.wikipedia.org/wiki/SipHash)\n* [MD5](https://tools.ietf.org/html/rfc1321)\n* [SHA-1](https://tools.ietf.org/html/rfc3174)\n* [SHA-2](https://tools.ietf.org/html/rfc6234)\n* [SHA-3](https://csrc.nist.gov/pubs/fips/202/final)\n* [RIPEMD-160, RIPEMD-128](https://homes.esat.kuleuven.be/%7Ebosselae/ripemd160.html)\n* [HMAC](https://tools.ietf.org/html/rfc2104)\n\nThe hashing algorithms conform to the following concept:\n\n```\nstruct HashAlgorithm\n{\n    using result_type = /*integral or array\u003cunsigned char, N\u003e*/; // result type\n\n    HashAlgorithm(); // default-constructible\n    explicit HashAlgorithm( uint64_t seed ); // seed-constructible\n    HashAlgorithm( void const* seed, size_t n ); // seed-constructible\n\n    HashAlgorithm( HashAlgorithm const\u0026 r ); // copy-constructible\n    HashAlgorithm\u0026 operator=( HashAlgorithm const\u0026 r ); // assignable\n\n    void update( void const* data, size_t n ); // feed bytes\n\n    result_type result(); // obtain result; also advances state,\n                          // and can be called multiple times\n};\n```\n\nSee [the documentation](https://boost.org/libs/hash2/) for more information.\n\n## Supported compilers\n\nThe library requires C++11. The following compilers:\n\n* g++ 4.8 or later\n* clang++ 3.9 or later\n* Visual Studio 2015 and above\n\nare being tested on [Github Actions](https://github.com/boostorg/hash2/actions/) and [Appveyor](https://ci.appveyor.com/project/pdimov/hash2/).\n\n## License\n\nDistributed under the [Boost Software License, Version 1.0](http://boost.org/LICENSE_1_0.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostorg%2Fhash2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboostorg%2Fhash2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostorg%2Fhash2/lists"}