#base64 #base-16 #base32 #hex

no-std binascii

Useful no-std binascii operations including base64, base32 and base16 (hex)

4 releases

Uses old Rust 2015

0.1.4 Feb 17, 2020
0.1.3 Nov 1, 2019
0.1.2 Sep 23, 2018
0.1.1 Aug 3, 2018
0.1.0 Aug 1, 2018

#2182 in Encoding

Download history 39638/week @ 2025-08-07 36483/week @ 2025-08-14 40455/week @ 2025-08-21 1415293/week @ 2025-08-28 47594/week @ 2025-09-04 50919/week @ 2025-09-11 49435/week @ 2025-09-18 65985/week @ 2025-09-25 44269/week @ 2025-10-02 44957/week @ 2025-10-09 49700/week @ 2025-10-16 51793/week @ 2025-10-23 61456/week @ 2025-10-30 43680/week @ 2025-11-06 40840/week @ 2025-11-13 46901/week @ 2025-11-20

202,255 downloads per month
Used in 576 crates (11 directly)

MIT license

19KB
307 lines

binascii

Build Status

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's Cargo.toml:
    [dependencies]
    binascii = "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.
    [dependencies]
    binascii = { version = "0.1", default-features = false, features = ["encode"] }
    
    # Enable decoders only.
    [dependencies]
    binascii = { version = "0.1", default-features = false, features = ["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.

No runtime deps

Features