A comprehensive Base64 encoding and decoding tool for developers.
python3 skills/base64-toolkit/scripts/base64_toolkit.py <action> [options]
| Action | Description |
|---|---|
| -------- | ------------- |
encode | Encode text to Base64 |
decode | Decode Base64 to text |
encode-url | URL-safe Base64 encoding |
decode-url | URL-safe Base64 decoding |
image-encode | Convert image to Base64 data URI |
| Option | Type | Default | Description |
|---|---|---|---|
| -------- | ------ | --------- | ------------- |
--input | string | - | Input string or file path |
--file | bool | false | Treat input as file path |
# Encode text
python3 skills/base64-toolkit/scripts/base64_toolkit.py encode --input "Hello, World!"
# Decode Base64
python3 skills/base64-toolkit/scripts/base64_toolkit.py decode --input "SGVsbG8sIFdvcmxkIQ=="
# URL-safe encode
python3 skills/base64-toolkit/scripts/base64_toolkit.py encode-url --input "Hello+World?"
# URL-safe decode
python3 skills/base64-toolkit/scripts/base64_toolkit.py decode-url --input "SGVsbG8rV29ybGQ_"
# Image to Base64
python3 skills/base64-toolkit/scripts/base64_toolkit.py image-encode --input /path/to/image.png
Ready for testing.
共 1 个版本