<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSecureTextField",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSecureTextField"
  },
  "title" : "NSSecureTextField"
}
-->

# NSSecureTextField

A text field that hides the typed text.

```
class NSSecureTextField
```

## Overview

A secure text field is suitable for use as a password-entry object or for any item in which the text value must be kept secret. [`NSSecureTextField`](/documentation/AppKit/NSSecureTextField) uses [`NSSecureTextFieldCell`](/documentation/AppKit/NSSecureTextFieldCell) to implement its user interface.

---

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)