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.
- Host: GitHub
- URL: https://github.com/nicolasbauw/lib-base64
- Owner: nicolasbauw
- License: mit
- Created: 2020-06-07T20:00:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-23T19:23:08.000Z (about 2 years ago)
- Last Synced: 2025-04-13T11:52:24.600Z (about 1 year ago)
- Topics: base64, decoding, encoding, method, padding, rust, string
- Language: Rust
- Homepage:
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lib-base64
[](https://crates.io/crates/lib-base64)
[](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