SensitiveKeys
Tells whether a name, such as a JSON key, a query parameter, a header, or a SharedPreferences key, looks like it holds a secret.
The Network tab's default redactor masks the values of these names, and the Preferences tab masks them by default. A tab of the app's own can use it the same way, so that all tabs agree on what is a secret.
A name is sensitive when it contains one of token, key, secret, password, passwd, pwd, auth, session, credential, bearer, signature, or sig, in any case. The name is split into words, at separators and camelCase humps, and the fragment must be in a word that isn't an ordinary one that happens to contain it, in any of its forms: author_name, authors, design, assignments, and keywords are not sensitive, while authorization, accessToken, and presigned_url are. Names that hold no secret although they have a sensitive word are not sensitive either, in any spelling: Idempotency-Key, public_key, and vapid_key; a token count or limit, where token or tokens sits next to a word such as max, total, count, remaining, prompt, or input, as in prompt_tokens, max_tokens, and totalTokenCount; a key that names a column, such as primary_key and partitionKey; and a yes-or-no flag about a secret, whose first word is is, has, can, or should, whose last word is exist, exists, enabled, disabled, enforced, required, or protected, or that asks for one, as in is_password_protected, passwordEnforced, keys_exist, and ask_for_password.
It goes by the name only, so a secret under a name that none of these words are in is not found.
Functions
Whether name looks like it holds a secret: see SensitiveKeys.