summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst16
1 files changed, 4 insertions, 12 deletions
diff --git a/README.rst b/README.rst
index 5796b7b..9c211d5 100644
--- a/README.rst
+++ b/README.rst
@@ -1,18 +1,10 @@
Unpadded Base64
===============
-.. image:: https://img.shields.io/pypi/v/unpaddedbase64.svg
- :target: https://pypi.python.org/pypi/unpaddedbase64/
- :alt: Latest Version
-
-.. image:: https://img.shields.io/travis/matrix-org/python-unpaddedbase64.svg
- :target: https://travis-ci.org/matrix-org/python-unpaddedbase64
-
Encode and decode Base64 without "=" padding.
`RFC 4648`_ specifies that Base64 should be padded to a multiple of 4 bytes
-using "=" characters. However this conveys no benefit so many protocols choose
-to use Base64 without the "=" padding.
+using "=" characters. However many protocols choose to omit the "=" padding.
.. _`RFC 4648`: https://tools.ietf.org/html/rfc4648
@@ -21,7 +13,7 @@ Installing
.. code:: bash
- pip install unpaddedbase64
+ python3 -m pip install unpaddedbase64
Using
-----
@@ -29,5 +21,5 @@ Using
.. code:: python
import unpaddedbase64
- assert (unpaddedbase64.encode_base64(b'\x00')) == u'AA'
- assert (unpaddedbase64.decode_base64(u'AA')) == b'\x00'
+ assert (unpaddedbase64.encode_base64(b'\x00')) == 'AA'
+ assert (unpaddedbase64.decode_base64('AA')) == b'\x00'