The sec crate prevent secrets from accidentally leaking through Debug or Display implementations. See the documentation for details.
sec
Debug
Display