<!--
{
  "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/Mask",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os12OSLogPrivacyV4MaskO"
  },
  "title" : "OSLogPrivacy.Mask"
}
-->

# OSLogPrivacy.Mask

A mask that establishes how the system displays a redacted value in a log message.

```
enum Mask
```

## Topics

### Privacy Mask Options

[`case hash`](/documentation/os/OSLogPrivacy/Mask/hash)

An option to replace a redacted value with a string that contains a hashed version of the original value.

[`case none`](/documentation/os/OSLogPrivacy/Mask/none)

An option to replace a redacted value with a generic string.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

---

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)