| Crates.io | basexx |
| lib.rs | basexx |
| version | 0.1.1 |
| created_at | 2025-09-24 07:19:25.72123+00 |
| updated_at | 2025-09-24 07:19:25.72123+00 |
| description | basexx utilities. base32, base64, base58, base56... |
| homepage | |
| repository | https://github.com/aki-akaguma/basexx |
| max_upload_size | |
| id | 1852643 |
| size | 497,121 |
basexx is a Rust library that provides multiple base encoding and decoding functionalities.
EncodeError and DecodeError enums to handle potential errors during the encoding and decoding processes.ags: This module provides the AsciiGraphicSet struct, which is used to manage the character sets for the various base encodings. It includes functions for converting between binary and ASCII representations, with SIMD-accelerated versions for improved performance.base32: This module implements the Base32 encoding and decoding functionality.base32i: This module provides an integer-based implementation of Base32, utilizing the num-bigint crate.base56: This module implements the Base56 encoding and decoding functionality.base58: This module implements the Base58 encoding and decoding functionality.base58b: This module provides a Bitcoin-style implementation of Base58.base58r: This module offers a rug-based implementation of Base58 for arbitrary-precision arithmetic.base64: This module implements the Base64 encoding and decoding functionality.base64g: This module provides a Base64 implementation with padding.Each base encoding is exposed as a struct (e.g., Base32, Base64) that can be instantiated with a default or custom character map. The encode and decode methods can then be used to perform the respective operations.
Example:
use basexx::Base64;
let data = b"Hello, world!";
let base64 = Base64::new();
let encoded = base64.encode(data).unwrap();
println!("Encoded: {}", encoded);
let decoded = base64.decode(&encoded).unwrap();
assert_eq!(data, &decoded[..]);
This project is licensed under either of
at your option.
~~ [test-windows-link]: https://github.com/aki-akaguma/basexx/actions/workflows/test-windows.yml ~~