New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

unpaddedbase64

Package Overview
Dependencies
Maintainers
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unpaddedbase64

Encode and decode Base64 without "=" padding

  • 2.1.0
  • PyPI
  • Socket score

Maintainers
6

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'

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc