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

https://github.com/t-88/base64-rust

implementing base64 encoding and decoding algorithm
https://github.com/t-88/base64-rust

base64 base64-decoding base64-encoding rust

Last synced: 2 months ago
JSON representation

implementing base64 encoding and decoding algorithm

Awesome Lists containing this project

README

        

# Base64 in Rust
my implementation of base64 in rust.

# How to use
```rust
mod base64;

fn main() {

let mut input_str: String = String::new();
std::io::stdin().read_line(&mut input_str).unwrap();
input_str.pop();

let encoded = base64::encode_base64(input_str);
let decoded = base64::decode_base64(encoded.clone());
print!("{encoded} {decoded}\n",);
}
```

# Sources
[Implementing Base64 from scratch in Rust](https://dev.to/tiemen/implementing-base64-from-scratch-in-rust-kb1)