binascii

Crates.iobinascii
lib.rsbinascii
version0.1.4
sourcesrc
created_at2018-08-01 23:24:22.137639
updated_at2020-02-17 22:18:26.224921
descriptionUseful no-std binascii operations including base64, base32 and base16 (hex)
homepage
repositoryhttps://github.com/naim94a/binascii-rs
max_upload_size
id77024
size19,827
Naim A. (naim94a)

documentation

README

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.
Commit count: 24

cargo fmt