#base85 #codec #variant #challenge #decoding #white-space #decoder

base85rs

A base85 (RFC1924 variant) encoder / decoder

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

#556 in Encoding

Download history 316/week @ 2023-12-05 501/week @ 2023-12-12 525/week @ 2023-12-19 368/week @ 2023-12-26 686/week @ 2024-01-02 564/week @ 2024-01-09 277/week @ 2024-01-16 224/week @ 2024-01-23 240/week @ 2024-01-30 225/week @ 2024-02-06 283/week @ 2024-02-13 281/week @ 2024-02-20 309/week @ 2024-02-27 691/week @ 2024-03-05 1548/week @ 2024-03-12 371/week @ 2024-03-19

2,958 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