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
- Host: GitHub
- URL: https://github.com/t-88/base64-rust
- Owner: t-88
- License: mit
- Created: 2023-10-17T20:36:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-18T18:07:12.000Z (over 1 year ago)
- Last Synced: 2025-02-01T23:44:54.157Z (4 months ago)
- Topics: base64, base64-decoding, base64-encoding, rust
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)