secure_gate/encoding/extensions/
mod.rs

1//! Additional functionality and convenience methods for encoding types.
2//!
3//! This module provides extension traits and methods that enhance the core encoding
4//! functionality with features like:
5//!
6//! - **Secure Encoding Extensions**: Traits for encoding byte arrays to various formats
7//! - **View Types**: Safe access to encoded strings with decoding capabilities
8//! - **RNG Integration**: Direct encoding of random bytes to validated strings
9//! - **Consuming Methods**: Methods that consume wrappers and return decoded bytes
10//!
11//! The extensions are designed to work seamlessly with the main encoding types
12//! while maintaining security guarantees.
13
14#[cfg(feature = "encoding-base64")]
15pub mod base64;
16#[cfg(feature = "encoding-bech32")]
17pub mod bech32;
18pub mod core;
19#[cfg(feature = "encoding-hex")]
20pub mod hex;
21
22#[cfg(feature = "encoding-base64")]
23pub use base64::Base64StringView;
24#[cfg(feature = "encoding-bech32")]
25pub use bech32::Bech32StringView;
26#[cfg(any(
27    feature = "encoding-hex",
28    feature = "encoding-base64",
29    feature = "encoding-bech32"
30))]
31pub use core::SecureEncodingExt;
32#[cfg(feature = "encoding-hex")]
33pub use hex::HexStringView;