Solved: How to copy/paste password into encrypted folder on a Mac

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.

  1. Open the Terminal
  2. Type in: hdiutil attach (and don’t press enter yet!)
  3. Then drag and drop the encrypted folder into the terminal
  4. Then type -stdinpass
  5. So your entire command should look something like this: hdiutil attach /path/to/encryptedfolder -stdinpass
  6. Now press enter
  7. 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.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.