A beginner's base64 encoder/decoder in Python
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
base64_python-0.6.tar.gz
(3.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file base64_python-0.6.tar.gz.
File metadata
- Download URL: base64_python-0.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
463eea822a6ef3459d249d35716947c18fd3f8615d98c24396569f06dffdd444
|
|
| MD5 |
3c03b9ab46e7ac3eb6c449724bb98e9e
|
|
| BLAKE2b-256 |
a17cdfefae15f4d981ff6553f056036edce0542f90ce61bde6663ebd82fd3e44
|
File details
Details for the file base64_python-0.6-py3-none-any.whl.
File metadata
- Download URL: base64_python-0.6-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41b5d00b4cd64054954dc941b75851695791638e9bce2261983f12a86cced168
|
|
| MD5 |
a1a1508b5860a58153b77a18644f9227
|
|
| BLAKE2b-256 |
7362b87db943b1f4f4a869131efef1b21bc75d64b70d09447e471db614d45717
|