---
title: SecCreateSharedWebCredentialPassword()
framework: security
role: symbol
role_heading: Function
path: security/seccreatesharedwebcredentialpassword()
---

# SecCreateSharedWebCredentialPassword()

Returns a randomly generated password.

## Declaration

```swift
func SecCreateSharedWebCredentialPassword() -> CFString?
```

## Return Value

Return Value A password in the form xxx-xxx-xxx-xxx, where x is taken from the sets abcdefghkmnopqrstuvwxy, ABCDEFGHJKLMNPQRSTUVWXYZ, and 3456789, with at least one character from each set being present.
