{"id":18841467,"url":"https://github.com/subvisual/ruby-radix-encoding","last_synced_at":"2025-06-19T06:38:35.667Z","repository":{"id":56890332,"uuid":"262340673","full_name":"subvisual/ruby-radix-encoding","owner":"subvisual","description":"Binary-to-text encoding using any power-of-2 base and/or alphabet.","archived":false,"fork":false,"pushed_at":"2022-07-22T06:38:41.000Z","size":32,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-15T05:51:23.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/subvisual.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-08T14:10:16.000Z","updated_at":"2020-05-11T17:45:24.000Z","dependencies_parsed_at":"2022-08-20T15:20:44.326Z","dependency_job_id":null,"html_url":"https://github.com/subvisual/ruby-radix-encoding","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/subvisual/ruby-radix-encoding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fruby-radix-encoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fruby-radix-encoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fruby-radix-encoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fruby-radix-encoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subvisual","download_url":"https://codeload.github.com/subvisual/ruby-radix-encoding/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subvisual%2Fruby-radix-encoding/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259947167,"owners_count":22936175,"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":[],"created_at":"2024-11-08T02:51:28.862Z","updated_at":"2025-06-19T06:38:30.641Z","avatar_url":"https://github.com/subvisual.png","language":"Ruby","readme":"RadixEncoding\n=============\n\nEncode and decode strings using standard or custom versions of radix-based\nencodings, such as Base16 (hexadecimal encoding), Base32 and Base64.\n\nThought for flexibility.\n\n\nInstallation\n------------\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"radix_encoding\"\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install radix_encoding\n\n\nUsage\n-----\n\n\n### Using a standard encoding\n\nThe following standard encodings are currently fully supported, and available\nthrough constants under `RadixEncoding`:\n- Standard Hexadecimal encoding through `RadixEncoding::BASE16` ([RFC4648]); \n- Standard Base32 encoding through `RadixEncoding::BASE32` ([RFC4648]); \n- Standard Base64 encoding through `RadixEncoding::BASE64` ([RFC4648]); \n\n\n### Using a custom encoding\n\nTo create your own encoding variant, use the `RadixEncoding::Encoding` class.\n\n```ruby\ndigest_hexencode = RadixEncoding::Encoding.new(\n  alphabet: \"0123456789abcdef\",\n  radix: 16,\n)\n```\n\n:warning: Caveats for the current implementation:\n- `alphabet` is **only** validated to have a length greater or equal to `radix`;\n- `radix` **must** be a power of 2, or it fall-back to the greatest power of 2\n  which is less than `radix`;\n- `padding` **should** be a string with a single character, otherwise the\n  behaviour is unspecified.\n\n\nDevelopment\n-----------\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake spec` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to [rubygems.org].\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/subvisual/ruby-radix-encoding.\n\n\nLicense\n-----\n\nRadixEncoding is copyright \u0026copy; 2020 Subvisual, Lda.\n\nIt is open-source, made available for free, and is subject to the terms in\nits [license].\n\n\nAbout\n-----\n\nRadixEncoding was created and is maintained with :heart: by\n[Subvisual][subvisual].\n\n[![Subvisual][subvisual-logo]][subvisual]\n\n\n[RFC4648]: https://tools.ietf.org/html/rfc4648\n[license]: ./LICENSE.txt\n[rubygems.org]: https://rubygems.org\n[subvisual]: http://subvisual.com\n[subvisual-logo]: https://raw.githubusercontent.com/subvisual/guides/master/github/templates/logos/blue.png\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fruby-radix-encoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubvisual%2Fruby-radix-encoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubvisual%2Fruby-radix-encoding/lists"}