1 unstable release
Uses new Rust 2024
| 0.1.0 | Sep 4, 2025 |
|---|
#1202 in Parser implementations
5KB
74 lines
acid64
A simple Rust CLI tool to decode Base64 and Base64URL-encoded strings. Supports input from command-line arguments, files, or stdin.
Features
- Decode standard Base64 or Base64URL
- Accept input from:
- Command-line argument
- File (
-f) - Stdin (default fallback)
- Optional flag to ignore padding (
-p) - Output decoded result to stdout
- Graceful error handling
Usage
Decode standard Base64 from CLI
acid64 "SGVsbG8gd29ybGQ="
Decode Base64URL from CLI
acid64 -u "YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXotLS0_"
Decode from file
acid64 -f input.txt
Decode from stdin
echo "SGVsbG8gd29ybGQ=" | acid64
Decode Base64URL from file, ignoring padding
acid64 -p "SGVsbG8td29ybGQ"
Dependencies
~1.1–1.7MB
~32K SLoC