7 stable releases

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

#1713 in Encoding

Download history 24/week @ 2024-06-17 20/week @ 2024-06-24 15/week @ 2024-07-01 13/week @ 2024-07-08 27/week @ 2024-07-15 17/week @ 2024-07-22 30/week @ 2024-07-29 26/week @ 2024-08-05 27/week @ 2024-08-12 5/week @ 2024-08-19 39/week @ 2024-08-26 14/week @ 2024-09-02 20/week @ 2024-09-09 20/week @ 2024-09-16 41/week @ 2024-09-23 50/week @ 2024-09-30

134 downloads per month
Used in 3 crates

MIT license

14KB
269 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