Base64 encode/decode with clipboard, zero dependencies
Project description
b64-clip
Base64 encode/decode with clipboard, zero dependencies.
Encode auth tokens, config values, certificate data, and more — result is automatically copied to your clipboard.
Install
pip install b64-clip
Or run directly (no install):
python3 b64_clip.py encode "hello world"
Usage
# Encode a string
b64-clip encode "hello world"
# Output: aGVsbG8gd29ybGQ=
# (also copied to clipboard)
# Decode a string
b64-clip decode "aGVsbG8gd29ybGQ="
# Output: hello world
# (also copied to clipboard)
# Encode a file
b64-clip encode --file cert.pem
# Decode a file
b64-clip decode --file encoded.txt
# Pipe from stdin
echo "test" | b64-clip encode
# URL-safe base64 decode
b64-clip decode --url-safe "PDw_Pz4-"
What it does
- Encode: Takes any input (string, file, or stdin) and outputs base64
- Decode: Takes base64 input and outputs the decoded plaintext
- Clipboard: Automatically copies the result to your clipboard on macOS, Linux (xclip/wl-copy), and Windows (clip.exe)
- Zero dependencies: Python stdlib only — no pip install needed at runtime
Requirements
- Python 3.11+
- For clipboard support:
xclipon Linux (install withsudo apt install xclip),pbcopyon macOS (built-in),clip.exeon Windows (built-in)
Security
Nothing is logged or stored. The tool processes data in memory only and does not write any temporary files or make network requests.
License
MIT
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
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 b64_clip-1.0.0.tar.gz.
File metadata
- Download URL: b64_clip-1.0.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72a7fe4609841636a891bbf59ddbcdb69c863448209a57be9bcd796abf591add
|
|
| MD5 |
52f31ff3e582786cf3f5c6c3422b5d2f
|
|
| BLAKE2b-256 |
0145943dc0f9b819251951851af90baa8e6bde8eab1470658fa35c03e949c35b
|
File details
Details for the file b64_clip-1.0.0-py3-none-any.whl.
File metadata
- Download URL: b64_clip-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c329228500c5785ae4b7a0be55321899d0235439de75bb3c52e1ba69656f7e1d
|
|
| MD5 |
2e990d61af9ba7def31d83ab8e8aebad
|
|
| BLAKE2b-256 |
11e26a52a55c9cd6ab9300b6279157326f72369eb638cf68b32e54120ddbdbdb
|