{"id":13731527,"url":"https://github.com/r-lyeh-archived/cocoa","last_synced_at":"2025-04-29T20:59:34.542Z","repository":{"id":7989528,"uuid":"9395371","full_name":"r-lyeh-archived/cocoa","owner":"r-lyeh-archived","description":":chocolate_bar: Cocoa is an uniform hashing library with no dependencies that provides interface for CRC32, CRC64, GCRC, RS, JS, PJW, ELF, BKDR, SBDM, DJB, DJB2, BP, FNV, FNV1a, AP, BJ1, MH2, SHA1, SFH (C++11)","archived":false,"fork":false,"pushed_at":"2015-06-12T17:13:54.000Z","size":197,"stargazers_count":24,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-29T20:59:29.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"zlib","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r-lyeh-archived.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}},"created_at":"2013-04-12T13:55:32.000Z","updated_at":"2024-12-21T00:47:53.000Z","dependencies_parsed_at":"2022-09-02T13:20:51.656Z","dependency_job_id":null,"html_url":"https://github.com/r-lyeh-archived/cocoa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lyeh-archived%2Fcocoa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lyeh-archived%2Fcocoa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lyeh-archived%2Fcocoa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r-lyeh-archived%2Fcocoa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r-lyeh-archived","download_url":"https://codeload.github.com/r-lyeh-archived/cocoa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251582924,"owners_count":21612742,"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-08-03T02:01:32.054Z","updated_at":"2025-04-29T20:59:34.536Z","avatar_url":"https://github.com/r-lyeh-archived.png","language":"C++","funding_links":[],"categories":["Maths"],"sub_categories":[],"readme":"cocoa \u003ca href=\"https://travis-ci.org/r-lyeh/cocoa\"\u003e\u003cimg src=\"https://api.travis-ci.org/r-lyeh/cocoa.svg?branch=master\" align=\"right\" /\u003e\u003c/a\u003e\n=====\n\n- Cocoa is an uniform hashing library written in C++11.\n- Cocoa provides interface for CRC32, CRC64, GCRC, RS, JS, PJW, ELF, BKDR, SBDM, DJB, DJB2, BP, FNV, FNV1a, AP, BJ1, MH2, SHA1, SFH.\n- Cocoa is tiny. Header-only.\n- Cocoa is cross-platform. No dependencies.\n- Cocoa is zlib/libpng licensed.\n\n### Sample\n```c++\n#include \u003ccassert\u003e\n#include \u003cstring\u003e\n#include \"cocoa.hpp\"\n\nint main() {\n    std::string hash = cocoa::SHA1(\"hello world\");\n    std::cout \u003c\u003c hash \u003c\u003c std::endl;\n    assert( cocoa::SHA1(\"hello world\") == cocoa::SHA1(\"hello world\") );\n    return 0;\n}\n```\n\n### Possible output\n---------------\n\u003cpre\u003e\n~/cocoa\u003e./test\n2aae6c35c94fcfb415dbe95f408b9ce91ee846ed\n~/cocoa\u003e\n\u003c/pre\u003e\n\n### C++03\nCheck old [c++03 version here](https://github.com/r-lyeh/cocoa/tree/c70a878eae074f73ae7f5222503538c130fd6a0d)\n\n### API\nFor more details check the [tests.cxx](tests.cxx) file.\n\n### Cocoa::hash() API\n- @todocument\n\n### Changelog\n- v1.0.0 (2015/06/12)\n  - Removed warning\n- v0.0.0 (2010/xx/xx)\n  - Initial commit\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lyeh-archived%2Fcocoa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr-lyeh-archived%2Fcocoa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr-lyeh-archived%2Fcocoa/lists"}