{"id":17881372,"url":"https://github.com/pepicrft/digester","last_synced_at":"2026-01-21T01:02:10.343Z","repository":{"id":284970877,"uuid":"953412647","full_name":"pepicrft/digester","owner":"pepicrft","description":"An Elixir utility to obtain a digest from various Elixir primities","archived":false,"fork":false,"pushed_at":"2026-01-14T13:53:59.000Z","size":57,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-14T17:35:44.152Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pepicrft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-23T10:02:48.000Z","updated_at":"2025-06-02T06:44:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b94d8aae-723a-4b7f-abde-ec55f219a143","html_url":"https://github.com/pepicrft/digester","commit_stats":null,"previous_names":["pepicrft/digester"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pepicrft/digester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepicrft%2Fdigester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepicrft%2Fdigester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepicrft%2Fdigester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepicrft%2Fdigester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepicrft","download_url":"https://codeload.github.com/pepicrft/digester/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepicrft%2Fdigester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28620572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["digest","elixir","hashing"],"created_at":"2024-10-28T12:36:45.926Z","updated_at":"2026-01-21T01:02:10.338Z","avatar_url":"https://github.com/pepicrft.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Digester\n\n[![Hex.pm](https://img.shields.io/hexpm/v/digester.svg)]()\n[![Hex.pm](https://img.shields.io/hexpm/dt/digester.svg)]()\n[![Hex.pm](https://img.shields.io/hexpm/dw/digester.svg)]()\n[![Hex.pm](https://img.shields.io/hexpm/dd/digester.svg)]()\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n`Digester` provides a set of utilities for obtaining **digests** from Elixir primitives. Digests are useful to determine if a value has changed, for example, in a cache.\n\n## Installation\n\nThe package can be installed by adding `digester` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:digester, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\n## Usage\n\nTo obtain a digest from a value or a set of values, you'll have to first create an instance of `Digester`:\n\n```elixir\ndigester = Digester.new() # Defaults to the SHA256 algorithm\n\n# You can specify the algorithm to use\ndigester = Digester.new(:sha256)\n```\n\nThen, you can use `Digester.combine/2` for every value you'd like to include in the digest:\n\n```elixir\ndigester = digester\n  |\u003e Digester.combine(\"foo\")\n  |\u003e Digester.combine(%{bar: \"baz\"})\n```\n\nRemember that **the order** in which you combine values matters, so the following will produce a different digest:\n\n```elixir\ndigester = digester\n  |\u003e Digester.combine(%{bar: \"baz\"})\n  |\u003e Digester.combine(\"foo\")\n```\n\nFinally, you can obtain the digest by calling `Digester.finalize/1`:\n\n```elixir\ndigest = Digester.finalize(digester)\n```\n\n`digest` will be a `String` containing the digest of the values you combined.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepicrft%2Fdigester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepicrft%2Fdigester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepicrft%2Fdigester/lists"}