{"id":16641192,"url":"https://github.com/barseghyanartur/rebus","last_synced_at":"2026-08-03T02:31:03.379Z","repository":{"id":12654136,"uuid":"15325823","full_name":"barseghyanartur/rebus","owner":"barseghyanartur","description":"Generate base64-encoded strings consisting of alphanumeric symbols only. https://pypi.python.org/pypi/rebus","archived":false,"fork":false,"pushed_at":"2014-03-14T15:14:32.000Z","size":204,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-01T05:25:28.775Z","etag":null,"topics":["base64","base64-decoding","base64-encoding","python"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/rebus","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barseghyanartur.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE_GPL2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-19T23:54:42.000Z","updated_at":"2021-05-27T02:08:10.000Z","dependencies_parsed_at":"2022-09-18T22:36:07.450Z","dependency_job_id":null,"html_url":"https://github.com/barseghyanartur/rebus","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/barseghyanartur/rebus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barseghyanartur%2Frebus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barseghyanartur%2Frebus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barseghyanartur%2Frebus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barseghyanartur%2Frebus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barseghyanartur","download_url":"https://codeload.github.com/barseghyanartur/rebus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barseghyanartur%2Frebus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36215462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-08-03T02:00:06.975Z","response_time":56,"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":["base64","base64-decoding","base64-encoding","python"],"created_at":"2024-10-12T07:45:45.267Z","updated_at":"2026-08-03T02:31:03.358Z","avatar_url":"https://github.com/barseghyanartur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============================================\nrebus\n===============================================\nGenerate base64-encoded strings consisting of alphanumeric symbols only.\n\nWhy did I make this app?\n===============================================\nRecently I have been working on implementing of a `Google Authenticator \u003chttps://pypi.python.org/pypi/collective.googleauthenticator\u003e`_ app for Plone (which I \ndid for my beloved company - `Goldmund, Wyldebeast \u0026 Wunderliebe \u003chttp://www.goldmund-wyldebeast-wunderliebe.nl\u003e`_).\n\nFor generating of a bar code image, I needed a base32 encoded string. While Android\ndevices could perfectly scan all bar-code image that I would generate, Apple devices\nwould raise errors on bar code images which were generated using strings that contain\none or more \"=\" characters.\n\nThe solution found was to add a number of \\\\n at the end of the string to be encoded.\n\nIf you happen to experience similar problems, you know what to do.\n\nPrerequisites\n===============================================\n- Python 2.6.8+, 2.7.+, 3.3.+\n\nInstallation\n===============================================\nInstall latest stable version from PyPI:\n\n    $ pip install rebus\n\n...or latest stable version from GitHub:\n\n    $ pip install -e git+https://github.com/barseghyanartur/rebus@stable#egg=rebus\n\n...or latest stable version from BitBucket:\n\n    $ pip install -e hg+https://bitbucket.org/barseghyanartur/rebus@stable#egg=rebus\n\n\nUsage and examples\n===============================================\nUsing `rebus` is damn easy. Whenever you would want to use ``base64.b32encode``\nor ``base64.b64encode``, replace `base64` with `rebus`.\n\nEncoding\n-----------------------------------------------\nRequired imports\n\n\u003e\u003e\u003e import rebus\n\nb32encode string\n\n\u003e\u003e\u003e rebus.b32encode('abcdefg')\n'MFRGGZDFMZTQUCQK'\n\nb64encode string\n\n\u003e\u003e\u003e rebus.b64encode('abcdefg')\n'YWJjZGVmZwoK'\n\nurlsafe_b64encode\n\n\u003e\u003e\u003e rebus.urlsafe_b64encode('abcdefg')\n'YWJjZGVmZwoK'\n\nDecoding\n-----------------------------------------------\nIt's possible to decode string, encoded with `rebus` to their original values.\n\nRequired imports\n\n\u003e\u003e\u003e import rebus\n\nb32decode string\n\n\u003e\u003e\u003e rebus.b32decode('MFRGGZDFMZTQUCQK')\n'abcdefg'\n\nb64decode string\n\n\u003e\u003e\u003e rebus.b64decode('YWJjZGVmZwoK')\n'abcdefg'\n\nurlsafe_b64encode\n\n\u003e\u003e\u003e rebus.urlsafe_b64decode('YWJjZGVmZwoK')\n'abcdefg'\n\nLicense\n===============================================\nGPL 2.0/LGPL 2.1\n\nSupport\n===============================================\nFor any issues contact me at the e-mail given in the `Author` section.\n\nAuthor\n===============================================\nArtur Barseghyan \u003cartur.barseghyan@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarseghyanartur%2Frebus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarseghyanartur%2Frebus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarseghyanartur%2Frebus/lists"}