{"id":18980733,"url":"https://github.com/niamtokik/bencode","last_synced_at":"2025-11-10T18:02:37.806Z","repository":{"id":181202084,"uuid":"90898240","full_name":"niamtokik/bencode","owner":"niamtokik","description":"Bencode Erlang Implementation","archived":false,"fork":false,"pushed_at":"2018-02-12T17:54:14.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-01T11:21:52.861Z","etag":null,"topics":["bencode","decode","encode","erlang","torrent"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-4-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niamtokik.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,"governance":null}},"created_at":"2017-05-10T18:54:25.000Z","updated_at":"2024-04-23T07:52:50.000Z","dependencies_parsed_at":"2023-07-14T13:39:48.815Z","dependency_job_id":null,"html_url":"https://github.com/niamtokik/bencode","commit_stats":null,"previous_names":["niamtokik/bencode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fbencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fbencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fbencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niamtokik%2Fbencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niamtokik","download_url":"https://codeload.github.com/niamtokik/bencode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239985725,"owners_count":19729515,"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":["bencode","decode","encode","erlang","torrent"],"created_at":"2024-11-08T16:07:38.315Z","updated_at":"2025-11-10T18:02:37.730Z","avatar_url":"https://github.com/niamtokik.png","language":"Erlang","readme":"#bencode\n\nBencode Erlang Library Implementation\n\n## Build\n\n    $ rebar3 compile\n\n## Usage\n\nYou can encode Erlang terms to Bencoded string:\n\n    \u003e {ok, E} = bencode:encode([1, 2, 3, mystring]).\n\t{ok,\u003c\u003c\"li1ei2ei3e8:mystringe\"\u003e\u003e}\n    \u003e E.\n\t\u003c\u003c\"li1ei2ei3e8:mystringe\"\u003e\u003e\n\nYou can also decode Bencoded string to Erlang terms:\n\n    \u003e {ok, D} = bencode_decode(B).\n\t{ok,[1,2,3,\u003c\u003c\"mystring\"\u003e\u003e]}\n\t\u003e D.\n\t[1,2,3,\u003c\u003c\"mystring\"\u003e\u003e]\n\nIf you want to parse torrent file:\n\n    \u003e {ok, Torrent} = file:read_file(\"/path/to/my.torrent\").\n\t\u003e {ok, Decoded} = bencode:decode(Torrent).\n\t\u003e Decoded.\n\n## Todo\n\n - Decoding options\n - Encoding options\n - Benchmarking\n - More documentation\n - More Test Unit\n - More Common Test\n - Find better way to order keys in dictionary\n \n## References\n\n - https://wiki.theory.org/BitTorrentSpecification#Bencoding\n - http://fileformats.wikia.com/wiki/Torrent_file\n - https://github.com/jlouis/benc\n - https://en.wikipedia.org/wiki/Bencode\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniamtokik%2Fbencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniamtokik%2Fbencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniamtokik%2Fbencode/lists"}