Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matrix-org/python-unpaddedbase64
Unpadded Base64
https://github.com/matrix-org/python-unpaddedbase64
Last synced: 6 days ago
JSON representation
Unpadded Base64
- Host: GitHub
- URL: https://github.com/matrix-org/python-unpaddedbase64
- Owner: matrix-org
- License: apache-2.0
- Created: 2015-08-21T15:14:14.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2021-10-25T13:31:44.000Z (about 3 years ago)
- Last Synced: 2024-09-28T09:37:30.135Z (about 1 month ago)
- Language: Python
- Size: 26.4 KB
- Stars: 11
- Watchers: 25
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Unpadded Base64
===============Encode and decode Base64 without "=" padding.
`RFC 4648`_ specifies that Base64 should be padded to a multiple of 4 bytes
using "=" characters. However many protocols choose to omit the "=" padding... _`RFC 4648`: https://tools.ietf.org/html/rfc4648
Installing
----------.. code:: bash
python3 -m pip install unpaddedbase64
Using
-----.. code:: python
import unpaddedbase64
assert (unpaddedbase64.encode_base64(b'\x00')) == 'AA'
assert (unpaddedbase64.decode_base64('AA')) == b'\x00'