pub fn parse_secrets(
plaintext: &[u8],
format: Option<SecretsFormat>,
) -> Result<Vec<SecretEntry>>Expand description
Parse a decrypted plaintext into secret entries.
Supports JSON, YAML, and TOML. Format is auto-detected if format
is None.
ยงErrors
Returns [SanitizeError::SecretsError] if the plaintext is not
valid UTF-8 or cannot be parsed in the specified format.