If you’ve created an encrypted folder using the Disk Utility on OS X and you’ve chosen a strong password then you’ve quickly realized that you can’t copy/paste into the password box.
If you have a very long password then this makes entering the password each time very time consuming. Especially if you’re storing the password in a password manager.
The solution is a simple Terminal command.
- Open the Terminal
- Type in: hdiutil attach (and don’t press enter yet!)
- Then drag and drop the encrypted folder into the terminal
- Then type -stdinpass
- So your entire command should look something like this: hdiutil attach /path/to/encryptedfolder -stdinpass
- Now press enter
- You’ll be asked for your password and you can now paste it in
This is the only way to paste your password for an encrypted folder on a Mac. And it’s only a couple of extra steps.
You can also consider encrypted folders using a program like VeraCrypt that does allow for pasting passwords.