4 releases

0.1.3 Mar 13, 2024
0.1.2 Oct 29, 2022
0.1.1 Sep 26, 2022
0.1.0 Sep 25, 2022

#387 in Encoding

Download history 237/week @ 2024-01-22 233/week @ 2024-01-29 235/week @ 2024-02-05 246/week @ 2024-02-12 309/week @ 2024-02-19 272/week @ 2024-02-26 606/week @ 2024-03-04 1652/week @ 2024-03-11 396/week @ 2024-03-18 267/week @ 2024-03-25 469/week @ 2024-04-01 373/week @ 2024-04-08 389/week @ 2024-04-15 510/week @ 2024-04-22 425/week @ 2024-04-29 1288/week @ 2024-05-06

2,637 downloads per month
Used in 4 crates (via rust-embed-for-web-utils)

MIT/Apache

10KB
218 lines

base85rs

A library to encode and decode Base85 RFC1924 variant

Description

This is only one variant of Base85, not the most common one (ASCII-85 and Z85 are wider spread). This variant will most likely been seen in CTF challenges.

During decoding, whitespaces are ignored.

Usage

To encode data:

let data = [b'a'];
let encoded = base85rs::encode(&data);
assert_eq!(encoded, "VE");

To decode data:

let data = "VE";
let decoded = base85rs::decode(&data);
assert_eq!(decoded, Some(vec![b'a']));

lib.rs:

A library to encode and decode Base85 RFC1924 variant

This is only one variant of Base85, not the most common one (ASCII-85 and Z85 are wider spread). This variant will most likely been seen in CTF challenges.

During decoding, whitespaces are ignored.

No runtime deps