binascii
Rust implementation of useful binascii functions.
- Encode & Decode support for:
- Base16 (Hex)
- Base32
- Base64
- no_std support
- never panics
Getting Started
- Add
binascii
to your package'sCargo.toml
:[] = "0.1"
- Encoders and decoders are enabled by default. To enable only decoders, use the
"decode"
feature. To enable only encoders, use the"encode"
feature:# Enable encoders only. [] = { = "0.1", = false, = ["encode"] } # Enable decoders only. [] = { = "0.1", = false, = ["decode"] }
- The API is very simple, head over to https://docs.rs/binascii/.
Why binascii
?
- This library was written with security in mind, and includes unit tests to prevent vulnerabilities found in many other implementations (many can be found here).
- There are no "unsafe" blocks, such blocks are forbidden.
no-std
is supported for your bare-metal & embedded projects.