| Crates.io | cyware-convert |
| lib.rs | cyware-convert |
| version | 1.0.6 |
| created_at | 2024-05-31 21:59:22.370625+00 |
| updated_at | 2024-05-31 21:59:22.370625+00 |
| description | Encoding library for web security applications |
| homepage | |
| repository | https://github.com/cyware/convert |
| max_upload_size | |
| id | 1258328 |
| size | 22,938 |
Welcome to cyware convert package! This repo contains the code we use to encode, hash, zip and much more. This library focus on providing a decent API for diverse encoding need in a web application context. It is Grapheme aware when needed and tries to provide predictable encoding/decoding behavior.
fn main() {
use cyware_convert::{Base64Decode, Operation, Base64Encode};
let encoder = Base64Decode::new();
let decoded = encoder.execute("Y2FpZG8=".as_bytes()).unwrap();
println!("{}", String::from_utf8(decoded).unwrap()); // cyware
let encoder = Base64Encode::new();
let encoded = encoder.execute("cyware".as_bytes()).unwrap();
println!("{}", String::from_utf8(encoded).unwrap()); // Y2FpZG8=
}