#base64 #decode-base64 #padding #string #methods #codec

lib-base64

A base64 (with padding) encoding and decoding library, which implements the encode() and decode() methods for the String and Vec<u8> types

9 stable releases

2.1.0 Mar 23, 2024
2.0.4 May 11, 2023
2.0.3 Oct 21, 2021
2.0.2 Aug 13, 2021
1.0.1 Jun 15, 2020

#835 in Encoding

Download history 4/week @ 2024-01-01 7/week @ 2024-01-29 9/week @ 2024-02-19 20/week @ 2024-02-26 1/week @ 2024-03-04 8/week @ 2024-03-11 87/week @ 2024-03-18 8/week @ 2024-03-25 157/week @ 2024-04-01

260 downloads per month
Used in base64-lt

MIT license

16KB
331 lines

lib-base64

Current Crates.io Version Downloads badge

A base64 (with padding) encoding and decoding library, which implements the encode() and decode() methods for the String and Vec<u8> types.

Example:

use lib_base64::Base64;
let s = String::from("Test");
assert_eq!(Ok(String::from("VGVzdA==")), s.encode())
use lib_base64::Base64;
let s = String::from("VGVzdA==");
assert_eq!(Ok(String::from("Test")), s.decode())

License: MIT


lib.rs:

A base64 (with padding) encoding and decoding library, which implements the encode() and decode() methods for the String and Vec<u8> types.

No runtime deps