{"id":20660911,"url":"https://github.com/exweb3/ex_keccak","last_synced_at":"2025-12-12T00:30:31.807Z","repository":{"id":43655203,"uuid":"287434131","full_name":"ExWeb3/ex_keccak","owner":"ExWeb3","description":"Elixir library for computing Keccak SHA3-256 hashes using a NIF built tiny-keccak Rust crate.","archived":false,"fork":false,"pushed_at":"2025-01-06T14:57:36.000Z","size":1421,"stargazers_count":26,"open_issues_count":1,"forks_count":20,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T09:11:39.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExWeb3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-08-14T03:25:40.000Z","updated_at":"2025-01-06T14:57:34.000Z","dependencies_parsed_at":"2024-02-20T13:27:37.468Z","dependency_job_id":"5d3eec52-cf7d-4b50-95e4-6a1ce1fb66a8","html_url":"https://github.com/ExWeb3/ex_keccak","commit_stats":{"total_commits":40,"total_committers":4,"mean_commits":10.0,"dds":0.525,"last_synced_commit":"b9dcd2600731895909901e41acfac37195446624"},"previous_names":["exweb3/ex_keccak","tzumby/ex_keccak"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExWeb3%2Fex_keccak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExWeb3%2Fex_keccak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExWeb3%2Fex_keccak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExWeb3%2Fex_keccak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExWeb3","download_url":"https://codeload.github.com/ExWeb3/ex_keccak/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249722857,"owners_count":21315899,"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-11-16T19:06:29.155Z","updated_at":"2025-12-12T00:30:31.777Z","avatar_url":"https://github.com/ExWeb3.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExKeccak\n\n[![CI](https://github.com/tzumby/ex_keccak/actions/workflows/ci.yml/badge.svg)](https://github.com/tzumby/ex_keccak/actions/workflows/ci.yml)\n\nExKeccak is a NIF that wraps the KECCAK-256 function from the [tiny-keccak](https://github.com/debris/tiny-keccak) Rust library. KECCAK-256 is used by Ethereum.\n\n## Installation\n\nThe package can be installed by adding `ex_keccak` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ex_keccak, \"~\u003e 0.7.6\"}\n  ]\nend\n```\n\n### Force compilation\n\nThis library includes pre-compiled binaries for the native Rust code. If you \nwant to force-compile the Rust code, you can add the following configuration\nto your application:\n\n```\nconfig :rustler_precompiled, :force_build, ex_keccak: true\n```\n\nYou also need to add Rusler to your dependencies:\n\n```\ndef deps do\n  [\n    {:ex_keccak, \"~\u003e 0.7.6\"},\n    {:rustler, \"\u003e= 0.0.0\", optional: true}\n  ]\nend\n```\n\n## Usage\n\nTo calculate KECCAK-256 hash, use `ExKeccak.hash_256/1` function. It returns `result` on success:\n\n```elixir\n  \u003c\u003c28, 138, 255, 149, 6, 133, 194, 237, 75, 195, 23, 79, 52, 114, 40, 123, 86, 217, 81, 123, 156, 148, 129, 39, 49, 154, 9, 167, 163, 109, 234, 200\u003e\u003e = ExKeccak.hash_256(\"hello\")\n```\n\nAnd it returns `ArgumentError` is provided data is not binary\n\n## Contributing\n\n1. [Fork it!](https://github.com/tzumby/ex_keccak)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nExKeccak is released under the Apache-2.0 License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexweb3%2Fex_keccak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexweb3%2Fex_keccak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexweb3%2Fex_keccak/lists"}