#chromium #base64 #pure #decoding #codec #atob #btoa

chromium-base64-rs

Pure rust implementation of chromium's btoa and atob

1 unstable release

0.1.0 Oct 6, 2023

#2184 in Encoding

MIT license

6KB
99 lines

chromium-base64-rs

Pure rust implementation of chromium's btoa and atob

Dependency

chromium-base64-rs = "0.1.0"

Example

Here's a encoding and decoding example:

let base64_encoded_string = base64_encode_to_string("Hello World!".as_bytes());

let decoded_string = base64_decode_to_string(base64_encoded_string.as_bytes());

lib.rs:

A pure rust port of chromiums's btoa and atob.

Example usage:

let base64_encoded_string = base64_encode_to_string("Hello World!".as_bytes());
let decoded_string = base64_decode_to_string(base64_encoded_string.as_bytes());

No runtime deps