{"id":13509339,"url":"https://github.com/rjsamson/hexate","last_synced_at":"2026-02-21T01:31:04.117Z","repository":{"id":57504853,"uuid":"11933847","full_name":"rjsamson/hexate","owner":"rjsamson","description":"A simple module for Hex encoding / decoding in Elixir.","archived":false,"fork":false,"pushed_at":"2020-09-02T18:52:44.000Z","size":148,"stargazers_count":30,"open_issues_count":1,"forks_count":20,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T19:03:45.083Z","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/rjsamson.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}},"created_at":"2013-08-06T20:27:50.000Z","updated_at":"2023-08-21T15:48:10.000Z","dependencies_parsed_at":"2022-08-30T01:30:54.114Z","dependency_job_id":null,"html_url":"https://github.com/rjsamson/hexate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rjsamson/hexate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjsamson%2Fhexate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjsamson%2Fhexate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjsamson%2Fhexate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjsamson%2Fhexate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjsamson","download_url":"https://codeload.github.com/rjsamson/hexate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjsamson%2Fhexate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29670124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"ssl_error","status_checked_at":"2026-02-20T23:52:33.807Z","response_time":59,"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":[],"created_at":"2024-08-01T02:01:06.377Z","updated_at":"2026-02-21T01:31:04.080Z","avatar_url":"https://github.com/rjsamson.png","language":"Elixir","funding_links":[],"categories":["Text and Numbers"],"sub_categories":[],"readme":"# Hexate\n\n[![Build Status](https://travis-ci.org/rjsamson/hexate.svg?branch=master)](https://travis-ci.org/rjsamson/hexate) [![Hex.pm](https://img.shields.io/hexpm/v/hexate.svg)](https://hex.pm/packages/hexate) [![Hex.pm](https://img.shields.io/hexpm/dt/hexate.svg)]()\n\nA simple module for hexadecimal encoding / decoding in Elixir.\n\n## Note: name change from `hex` to `hexate`\n\nNow that Elixir includes integration with Hex.pm, the library has been\nrenamed `hexate` to avoid namespace clashes.\n\nThis was manifesting itself with intermittent failures when running test\nsuites. If you experience this, update your deps!\n\nIf you really *must* use the old version, it's on the branch `pre-rename-to-hexate`.\n\n## Adding to your `mix.exs`\n\n```elixir\ndefp deps do\n  [\n    {:hexate,  \"\u003e= 0.6.0\"}\n  ]\nend\n```\n\n## Usage\n\nEncode to string (binary):\n```elixir\n# From a string\niex\u003e Hexate.encode(\"This is a test.\")\n     \"54686973206973206120746573742e\"\n\n# From a char-list\niex\u003e Hexate.encode('This is a test.')\n     \"54686973206973206120746573742e\"\n\niex\u003e Hexate.encode(123456)\n     \"1e240\"\n\niex\u003e Hexate.encode(15, 4)\n     \"000f\"\n\niex\u003e Hexate.encode(15.0, 2)\n     \"0f\"\n\niex\u003e Hexate.encode(15.0)\n     \"f\"\n```\n\nDecode to string (binary):\n```elixir\n# From a hex string\niex\u003e Hexate.decode(\"54686973206973206120746573742e\")\n     \"This is a test.\"\n\n# From a hex char-list\niex\u003e Hexate.decode('54686973206973206120746573742e')\n     \"This is a test.\"\n```\n\nEncode to hex char-list:\n```elixir\n# From a unicode char-list\niex\u003e Hexate.encode_to_list('This is a test.')\n     '54686973206973206120746573742e'\n\n# From a unicode string\niex\u003e Hexate.encode_to_list(\"This is a test.\")\n     '54686973206973206120746573742e'\n\n# From an integer\niex\u003e Hexate.encode_to_list(123456)\n     '1e240'\n```\n\nDecode to unicode char-list:\n```elixir\n# From a hex char-list\niex\u003e Hexate.decode_to_list('54686973206973206120746573742e')\n     'This is a test.'\n\n# From a hex string\niex\u003e Hexate.decode_to_list(\"54686973206973206120746573742e\")\n     'This is a test.'\n```\n\nConvert hex to integer:\n```elixir\n# From hex char-list\niex\u003e Hexate.to_integer('54686973206973206120746573742e')\n     438270661302729020147902120434299950\n\n# From hex string\niex\u003e Hexate.to_integer(\"54686973206973206120746573742e\")\n     438270661302729020147902120434299950\n```\n\n## Contributing\n\n* Fork this repo\n* Make a feature branch\n* Issue a pull request\n\n## Running tests\n\n```bash\nmix deps.get\nmix test.watch\n```\n\n## Authors\n\n[Robert J Samson](https://github.com/rjsamson)\n[David Parry](https://github.com/suranyami)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjsamson%2Fhexate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjsamson%2Fhexate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjsamson%2Fhexate/lists"}