{"id":17964789,"url":"https://github.com/esl/base16","last_synced_at":"2025-08-14T21:07:29.664Z","repository":{"id":51244906,"uuid":"289879725","full_name":"esl/base16","owner":"esl","description":"The last time I hexadecimify Erlang binaries...","archived":false,"fork":false,"pushed_at":"2022-02-24T19:34:46.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-09T19:51:47.353Z","etag":null,"topics":["base16","erlang","hexadecimal","hexadecimal-converter","rfc-4648","rfc4648"],"latest_commit_sha":null,"homepage":"https://tools.ietf.org/html/rfc4648","language":"Erlang","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/esl.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":"2020-08-24T09:07:46.000Z","updated_at":"2024-11-05T00:25:39.000Z","dependencies_parsed_at":"2022-08-23T12:10:24.207Z","dependency_job_id":null,"html_url":"https://github.com/esl/base16","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/esl/base16","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esl%2Fbase16","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esl%2Fbase16/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esl%2Fbase16/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esl%2Fbase16/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esl","download_url":"https://codeload.github.com/esl/base16/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esl%2Fbase16/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270482333,"owners_count":24591340,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["base16","erlang","hexadecimal","hexadecimal-converter","rfc-4648","rfc4648"],"created_at":"2024-10-29T12:08:40.506Z","updated_at":"2025-08-14T21:07:29.647Z","avatar_url":"https://github.com/esl.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Base16 encoding and decoding\n============================\n\n[![Actions Status](https://github.com/esl/base16/workflows/ci/badge.svg)](https://github.com/esl/base16/actions)\n[![codecov](https://codecov.io/gh/esl/base16/branch/main/graph/badge.svg)](https://codecov.io/gh/esl/base16)\n[![Hex](http://img.shields.io/hexpm/v/base16.svg)](https://hex.pm/packages/base16)\n\n## API\n\nBoth `encode/1` and `decode/1` functions are of `(binary()) -\u003e binary()` type.\n\nThe usage looks like:\n\n```erlang\nB = crypto:rand_bytes(10).\nH = base16:encode(B).\nB = base16:decode(H).\n```\n\nPlease, note:\n\n   * `base16:encode/1` returns lower-case letters.\n   * `base16:decode/1` requires the argument to be a binary of odd-number size, and it parses both in upper-case or lower-case encoding.\n\n\n## Implementation\n\nCode is implemented using lookup tables, which tremendously speeds-up the algorithm and consumes constant memory. It's the fastest you can get using pure Erlang code!\n\n## NOTE\n\nNote that, lookup tables also means that the code-size is bigger.\nIf you're running on embedded, where smaller code-sizes are the actual best, you might benefit from using the version 1.0.0, both available on github and hex.\n\n\nLicense\n-------\n\nThe library itself is licensed under the MIT License.\n\nThe tests, due to dependency on [PropEr], are licensed under the GPLv3 license.\n\n[PropEr]:http://proper.softlab.ntua.gr/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesl%2Fbase16","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesl%2Fbase16","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesl%2Fbase16/lists"}