<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/kSecSharedPassword",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@kSecSharedPassword"
  },
  "title" : "kSecSharedPassword"
}
-->

# kSecSharedPassword

A dictionary key whose value is the shared password.

```
let kSecSharedPassword: CFString
```

## Discussion

The dictionary returned by the [`SecRequestSharedWebCredential(_:_:_:)`](/documentation/Security/SecRequestSharedWebCredential(_:_:_:)) function includes this key to provide you with the password.

You can also access the server’s URL and the user name from this dictionary. To access the server, use the [`kSecAttrServer`](/documentation/Security/kSecAttrServer) constant. To access the user name, use the [`kSecAttrAccount`](/documentation/Security/kSecAttrAccount) constant. These constants are part of the [Keychain services](/documentation/Security/keychain-services) API, and in particular are listed among the [Item attribute keys and values](/documentation/Security/item-attribute-keys-and-values).

---

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)