<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSLogPrivacy/sensitive(mask:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os12OSLogPrivacyV9sensitive4maskA2C4MaskO_tFZ"
  },
  "title" : "sensitive(mask:)"
}
-->

# sensitive(mask:)

Returns a privacy structure that marks an interpolated value as sensitive, and customizes the display of redacted values.

```
static func sensitive(mask: OSLogPrivacy.Mask) -> OSLogPrivacy
```

## Parameters

`mask`

A mask that determines whether the system replaces a redacted value with a generic string or a string from a hash of the redacted value.

## Return Value

A privacy object that redacts a sensitive value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)