Arm1.ru

Password generation using Security Framework on iOS and macOS

Couple lines of code to generate a 15 characters length password (just like in Safari):

import Security

let pass = SecCreateSharedWebCredentialPassword() as String?
print(pass as Any)
keyboard_return back