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::SecretsInvalidUtf8 if the plaintext is not
valid UTF-8, SanitizeError::SecretsFormatError if it cannot be parsed
in the specified format or if the file exceeds the size limit.