pub trait IntoSecretBox {
// Required method
fn into_secret_box(self) -> SecretBox<[u8]>;
}Expand description
Helper trait to convert various secret types into SecretBox<[u8]>.
This allows functions to accept both SecretBox<[u8]> and non-boxed types like &[u8] or Vec<u8>.