#codec #base64 #hex #base-16 #base32

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

#881 in Encoding

Download history 23678/week @ 2023-12-11 20249/week @ 2023-12-18 12789/week @ 2023-12-25 20910/week @ 2024-01-01 24932/week @ 2024-01-08 28303/week @ 2024-01-15 29194/week @ 2024-01-22 29923/week @ 2024-01-29 29692/week @ 2024-02-05 29130/week @ 2024-02-12 26492/week @ 2024-02-19 27154/week @ 2024-02-26 29870/week @ 2024-03-04 27948/week @ 2024-03-11 28645/week @ 2024-03-18 24074/week @ 2024-03-25

112,156 downloads per month
Used in 285 crates (9 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