Create Password Dialogs
While it has long been possible in principle to build a password dialog from scratch, the notebook interface now provides a standard template for common password dialogs with AuthenticationDialog.
Importing a password-protected file without the password fails.
Instead of hard-coding the password, use AuthenticationDialog to prompt for it.
Other standard password dialog templates are available too, including one for username and password.
Another form can be used to access PermissionsKey expressions for Wolfram cloud objects.
AuthenticationDialog can also create highly customized password dialogs.