Skip to main content

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: xclip on Linux (install with sudo apt install xclip), pbcopy on macOS (built-in), clip.exe on 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

b64_clip-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

b64_clip-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for b64_clip-1.0.0.tar.gz
Algorithm Hash digest
SHA256 72a7fe4609841636a891bbf59ddbcdb69c863448209a57be9bcd796abf591add
MD5 52f31ff3e582786cf3f5c6c3422b5d2f
BLAKE2b-256 0145943dc0f9b819251951851af90baa8e6bde8eab1470658fa35c03e949c35b

See more details on using hashes here.

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

Hashes for b64_clip-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c329228500c5785ae4b7a0be55321899d0235439de75bb3c52e1ba69656f7e1d
MD5 2e990d61af9ba7def31d83ab8e8aebad
BLAKE2b-256 11e26a52a55c9cd6ab9300b6279157326f72369eb638cf68b32e54120ddbdbdb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page