{"id":18508309,"url":"https://github.com/eknkc/basex","last_synced_at":"2025-08-20T06:33:10.260Z","repository":{"id":46100863,"uuid":"83137356","full_name":"eknkc/basex","owner":"eknkc","description":"Arbitrary base encoding in GO","archived":false,"fork":false,"pushed_at":"2024-01-08T09:38:58.000Z","size":12,"stargazers_count":55,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-17T01:34:11.101Z","etag":null,"topics":["base62","encoding","go","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/eknkc.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-25T14:33:13.000Z","updated_at":"2024-12-01T18:46:31.000Z","dependencies_parsed_at":"2024-06-18T15:15:11.533Z","dependency_job_id":"9588441d-a4f4-48af-99f0-12303ec17a02","html_url":"https://github.com/eknkc/basex","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eknkc%2Fbasex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eknkc%2Fbasex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eknkc%2Fbasex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eknkc%2Fbasex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eknkc","download_url":"https://codeload.github.com/eknkc/basex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230400616,"owners_count":18219831,"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":["base62","encoding","go","golang"],"created_at":"2024-11-06T15:14:00.916Z","updated_at":"2024-12-19T08:08:39.200Z","avatar_url":"https://github.com/eknkc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# basex\n\n[![Actions Status](https://github.com/eknkc/basex/workflows/Go/badge.svg)](https://github.com/eknkc/basex/actions)\n\nimport \"github.com/eknkc/basex\"\n\nPackage basex provides fast base encoding / decoding of any given alphabet using\nbitcoin style leading zero compression. It is a GO port of\nhttps://github.com/cryptocoinjs/base-x\n\n## Usage\n\n#### type Encoding\n\n```go\ntype Encoding struct {\n}\n```\n\nEncoding is a custom base encoding defined by an alphabet. It should be created\nusing NewEncoding function\n\n#### func  NewEncoding\n\n```go\nfunc NewEncoding(alphabet string) (*Encoding, error)\n```\nNewEncoding returns a custom base encoder defined by the alphabet string. The\nalphabet should contain non-repeating characters. Ordering is important. Example\nalphabets:\n\n    - base2: 01\n    - base16: 0123456789abcdef\n    - base32: 0123456789ABCDEFGHJKMNPQRSTVWXYZ\n    - base62: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\n\n#### func (*Encoding) Decode\n\n```go\nfunc (e *Encoding) Decode(source string) ([]byte, error)\n```\nDecode function decodes a string previously obtained from Encode, using the same\nalphabet and returns a byte slice In case the input is not valid an error will\nbe returned\n\n#### func (*Encoding) Encode\n\n```go\nfunc (e *Encoding) Encode(source []byte) string\n```\nEncode function receives a byte slice and encodes it to a string using the\nalphabet provided\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feknkc%2Fbasex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feknkc%2Fbasex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feknkc%2Fbasex/lists"}