#codec #base85 #variant #ctf #decoding #challenge #rfc1924

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

#757 in Encoding

Download history 1508/week @ 2024-08-26 1678/week @ 2024-09-02 855/week @ 2024-09-09 627/week @ 2024-09-16 573/week @ 2024-09-23 620/week @ 2024-09-30 845/week @ 2024-10-07 1644/week @ 2024-10-14 1588/week @ 2024-10-21 1820/week @ 2024-10-28 1778/week @ 2024-11-04 1584/week @ 2024-11-11 1739/week @ 2024-11-18 1665/week @ 2024-11-25 2036/week @ 2024-12-02 1709/week @ 2024-12-09

7,173 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