6 stable releases

3.0.0 Jun 3, 2021
2.0.1 Apr 2, 2021
2.0.0 Apr 1, 2021
1.0.2 Mar 22, 2021

#504 in Encoding

Download history 51/week @ 2022-10-08 26/week @ 2022-10-15 33/week @ 2022-10-22 67/week @ 2022-10-29 76/week @ 2022-11-05 48/week @ 2022-11-12 51/week @ 2022-11-19 42/week @ 2022-11-26 36/week @ 2022-12-03 57/week @ 2022-12-10 43/week @ 2022-12-17 33/week @ 2022-12-24 22/week @ 2022-12-31 49/week @ 2023-01-07 58/week @ 2023-01-14 70/week @ 2023-01-21

204 downloads per month
Used in 3 crates

MIT license

9KB
167 lines

Base45

Test and publish Base45 Crate API

A encoder/decoder for base45 that is fully compatible with draft-faltstrom-base45-02. When encoding QR or Aztec codes a different scheme than the standard base64, base32, and base16 is needed.

Installation

[dependencies]
base45 = "1.0.1"

Benchmarks

Benchmarks were created using Criterion. The benchmarks test encoding and decoding of the string "The quick brown fox jumps over the lazy dog". Test computer is a MacBook 16" (2019) with 2,6 GHz 6-Core Intel Core i7 and 32 GB 2667 MHz DDR4.

encode long string                time:   [6.0716 us 6.1040 us 6.1377 us]
encode long string from buffer    time:   [6.0220 us 6.0547 us 6.0885 us]
decode long string                time:   [1.0876 us 1.0993 us 1.1105 us]

No runtime deps