Created
January 31, 2021 08:25
-
-
Save manas-sharma-1683/8706e43221e7d76f6a8093347669a38a to your computer and use it in GitHub Desktop.
Generate a random, strong password.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Generates a random and strong password in the format xxx-xxx-xxx-xxx. | |
* Note: Not available on WatchOS. | |
* | |
*/ | |
import Security | |
if let password = SecCreateSharedWebCredentialPassword() as String? { | |
print(password) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment