Skip to main content

Base64_Python

A beginner's base64/base64_Url encoder/decoder in Python

install

Linux&MacOS

Bash/Zsh

pip3 install base64_python

Windows

CMD/PowerShell

pip install base64_python

function

  • Base64.encode(str|bytes) -> str
  • Base64.decode(str|bytes) -> bytes
  • Base64_Url.encode(str|bytes) -> str
  • Base64_Url.decode(str|bytes) -> bytes
  • test() -> str

Exam

Example

import base64_python
base64 = base64_python.Base64()
base64_url = base64_python.Base64_Url()
print(base64.encode("Exam"))
print(base64.decode("RXhhbQ=="))
print(base64.decode("RXhhbQ==").decode("utf-8"))
print(base64_url.encode("Exam"))
print(base64_url.decode("RXhhbQ"))
print(base64_url.decode("RXhhbQ").decode("utf-8"))
print(base64_python.test())

Output

RXhhbQ==
bytearray(b'Exam\x00')
Exam
RXhhbQ
bytearray(b'Exam\x00')
Exam
+------------------------------------+
| Input Text     : Exam              |
| Encoding       : RXhhbQ==          |
| Decoding       : Exam              |
| Encodeing Type : Base64            |
| Time           : 0.00004 seconds   |
+------------------------------------+
+------------------------------------+
| Input Text     : Exam              |
| Encoding       : RXhhbQ            |
| Decoding       : Exam              |
| Encodeing Type : Base64_Url        |
| Time           : 0.00003 seconds   |
+------------------------------------+

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for base64-python 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for base64-python 0.6
File Size Uploaded
base64_python-0.6.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for base64-python 0.6
File Interpreter ABI Platform
base64_python-0.6-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / base64_python-0.6.tar.gz

Download URL base64_python-0.6.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
463eea822a6ef3459d249d35716947c18fd3f8615d98c24396569f06dffdd444
BLAKE2b-256 checksum
How to use checksums
a17cdfefae15f4d981ff6553f056036edce0542f90ce61bde6663ebd82fd3e44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / base64_python-0.6-py3-none-any.whl

Download URL base64_python-0.6-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41b5d00b4cd64054954dc941b75851695791638e9bce2261983f12a86cced168
BLAKE2b-256 checksum
How to use checksums
7362b87db943b1f4f4a869131efef1b21bc75d64b70d09447e471db614d45717
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.6 This release

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page