Get a generic password from macOS Keychain using the 'security' cli
Keychain password label
Leychain password type. Either "generic" or "internet".
Passwords must be saved in Keychain prior to using the function.
macOS may require the user to grant access to "security" the first time the function is run for each password. It is important to select "Always allow", which will prevent similar dialogs in the future.
Returns a decrypted password as an invisible string. Invisible means that the password won't be displayed in the console, but can be assigned to a variable or used inline.
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.