CryptoErrors

Sanitizes exception messages so that sensitive data is never surfaced.

Functions

Link copied to clipboard
fun safeMessage(e: Throwable, fallback: String): String

Returns a short, non-sensitive message derived from e, falling back to fallback when the message is empty or looks like it could leak secrets.