An open API service indexing awesome lists of open source software.

https://github.com/nicolasbauw/lib-base64

A base64 (with padding) encoding library, which implements the encode() and decode() methods for the String and Vec<u8> types.
https://github.com/nicolasbauw/lib-base64

base64 decoding encoding method padding rust string

Last synced: 12 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# lib-base64

[![Current Crates.io Version](https://img.shields.io/crates/v/lib-base64.svg)](https://crates.io/crates/lib-base64)
[![Downloads badge](https://img.shields.io/crates/d/lib-base64.svg)](https://crates.io/crates/lib-base64)

A base64 (with padding) encoding and decoding library, which implements the encode() and decode() methods for the `String` and `Vec` 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