| Crates.io | anycoder |
| lib.rs | anycoder |
| version | 0.1.0 |
| created_at | 2025-08-20 03:33:35.299494+00 |
| updated_at | 2025-08-20 03:33:35.299494+00 |
| description | A fast, lightweight command-line utility for encoding and decoding data between different formats. |
| homepage | |
| repository | https://github.com/boazy/anycoder |
| max_upload_size | |
| id | 1802822 |
| size | 23,517 |
A fast, lightweight command-line utility for encoding and decoding data between different formats. AnyCoder supports base64, base64url, and hexadecimal formats, making it perfect for shell pipelines and automation scripts.
git clone https://github.com/boazyaniv/anycoder.git
cd anycoder
cargo build --release
The binary will be available at target/release/anycoder.
AnyCoder uses mutually exclusive --encode and --decode flags:
anycoder --encode <FORMAT>
anycoder --decode <FORMAT>
base64 - Standard Base64 encoding (RFC 4648)base64url - URL-safe Base64 encoding without paddinghex - Hexadecimal encodingecho "Hello, World!" | anycoder --encode base64
# Output: SGVsbG8sIFdvcmxkIQo=
echo "Hello, World!" | anycoder --encode hex
# Output: 48656c6c6f2c20576f726c64210a
echo "SGVsbG8sIFdvcmxkIQo=" | anycoder --decode base64
# Output: Hello, World!
echo "48656c6c6f2c20576f726c64210a" | anycoder --decode hex
# Output: Hello, World!
# Convert hex to base64
echo "deadbeef" | anycoder --decode hex | anycoder --encode base64
# Output: 3q2+7w==
# Convert base64 to base64url
echo "SGVsbG8sIFdvcmxkIQ==" | anycoder --decode base64 | anycoder --encode base64url
# Output: SGVsbG8sIFdvcmxkIQ
# Encode a file
cat file.txt | anycoder --encode base64 > encoded.txt
# Decode a file
cat encoded.txt | anycoder --decode base64 > decoded.txt
Get help with the --help flag:
anycoder --help
cargo build
cargo test
cargo clippy
cargo fmt
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.