#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

#763 in Encoding

Download history 628/week @ 2024-10-01 1102/week @ 2024-10-08 1492/week @ 2024-10-15 1816/week @ 2024-10-22 1704/week @ 2024-10-29 1769/week @ 2024-11-05 1647/week @ 2024-11-12 1652/week @ 2024-11-19 1694/week @ 2024-11-26 2069/week @ 2024-12-03 1996/week @ 2024-12-10 2187/week @ 2024-12-17 1059/week @ 2024-12-24 1789/week @ 2024-12-31 1948/week @ 2025-01-07 1634/week @ 2025-01-14

6,778 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