anycoder-0.1.0 is not a library.
AnyCoder
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.
Features
- Multiple formats: Supports base64, base64url, and hex encoding/decoding
- Pipeline-friendly: Reads from stdin and writes to stdout
- Fast: Written in Rust for optimal performance
- Simple: Clean, intuitive command-line interface
- Error handling: Clear error messages with context
Installation
From Source
The binary will be available at target/release/anycoder.
Usage
AnyCoder uses mutually exclusive --encode and --decode flags:
Supported Formats
base64- Standard Base64 encoding (RFC 4648)base64url- URL-safe Base64 encoding without paddinghex- Hexadecimal encoding
Examples
Basic Encoding
|
# Output: SGVsbG8sIFdvcmxkIQo=
|
# Output: 48656c6c6f2c20576f726c64210a
Basic Decoding
|
# Output: Hello, World!
|
# Output: Hello, World!
Chaining Operations
# Convert hex to base64
| |
# Output: 3q2+7w==
# Convert base64 to base64url
| |
# Output: SGVsbG8sIFdvcmxkIQ
Working with Files
# Encode a file
|
# Decode a file
|
Help
Get help with the --help flag:
Development
Prerequisites
- Rust 1.70 or later
Building
Running Tests
Code Quality
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.