Benches macOS

8

Can't paste password for new encrypted di…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Howdy all!

I have been trying to create an encrypted disk image with the Disk Utility, but I'm having trouble with putting in the password.

Using the password assistant, it only fills one of the two password fields, and I cannot copy/paste the password to the other field. If I generate a password elsewhere I cannot paste it into either box as well.

If I switch applications from Disk Utility and come back to the password dialog the menubar says I am still in whatever application I was last (in this case it says Firefox at the very left) and the Edit menu is completely grayed out.

Any idea how to get a non-typeable password into this dialog?

Thanks for your help.

Mike

8 replies

Sign in or join Beachball Help to reply.

  1. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    that's a security feature. you can't paste into that window. you have to enter the password by hand.

  2. 0

    nerowolfe

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    V.K. wrote:

    that's a security feature. you can't paste into that window. you have to enter the password by hand.

    Would a keystroke macro work in this case? Just curious.

  3. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    nerowolfe wrote:

    V.K. wrote:

    that's a security feature. you can't paste into that window. you have to enter the password by hand.

    Would a keystroke macro work in this case? Just curious.

    I just made one with Butler and it does work in that field too but I'm not sure how useful that is because you definitely can not copy+paste there.

  4. 0

    gunspae

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    That's a security feature? It's definitely discouraging me from using my usual 60 character random passwords, so I don't see the logic.

  5. 0

    common anglo saxon name here

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    yep, that was my protocol too. I just discovered this on my beautiful brand new mbp, looks like I need a new strategy. Since it looks more like a design flaw than a security feature to me, I don't suppose this can be turned off? (even Clippy could be turned off)

  6. 0

    nerowolfe

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    common anglo saxon name here wrote:

    yep, that was my protocol too. I just discovered this on my beautiful brand new mbp, looks like I need a new strategy. Since it looks more like a design flaw than a security feature to me,

    It's a design feature. Many secure password windows do not accept pasting for very obvious reasons.

  7. 0

    KJK555

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    You can paste it in if you use hdiutil to create or mount the disk image (In Terminal.app). That's the

    only way to go if you use a "bullet proof monster" password like I do.

    ##

    To create an encrypted, sparse disk image, open a Terminal window and cd to the directory in which

    you want to create the image file. For example:

    cd ~/Desktop

    Then type the command:

    hdiutil create -size thesize -encryption -type SPARSE -fs HFS+ thename

    live command example:

    hdiutil create -size 1g -encryption -type SPARSE -fs HFS+ myimage

    (this will create a 1gigabyte sparse image with the hfs format with the name "myimage.sparseimage"

    #note: I love sparseimages and sparsebundles because they mount so quickly#

    Above, the size is the maximum size that the volume will ever be able to contain, for example,

    660m for 660 megabytes or 1g for one gigabyte. Note that if you want the image file to remain

    below a certain size (such as the size of a CD) you must allow for approximately 10% overhead.

    Also above, thename is the name of the image file you want to create, not the volume name.

    The volume name will be "untitled". Rename as you would any other mounted volume (after it is

    mounted).

    You will be asked for a password or phase to secure your file. In terminal you may copy and paste

    or use command + V keyboard combo. It will mount normally after that.

    I don't use the "Remember password (add to Keychain)" function because my passphrase will be

    visible in the Keychain to anyone with physical access to your computer.

    Instead I use Terminal to open my new image.

    Open terminal.app, simply type:

    hdiutil attach /path/to/imagefile

    example:

    hdiutil attach /Users/kj/Desktop/myimage.sparseimage

    (remember, you can drag and drop the file path into the terminal from Finder)

    Terminal will ask for your password, simply cut and paste from your favorite password program

    (such as "1Password").

    There is a manual page available; type man hdiutil in the Terminal.

    Enjoy,

    Kj

  8. 0

    KJK555

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Here is a link to a couple of scripts to manage disk images.

    http://www.azlist.info/kj/mac/supportfiles/dmg/secretdmg.zip

    attach! - mounts disk images with ownership permissions, same as a regular

    hard drive.

    mksecret - creates encrypted sparsebundle images (similar to FileVault).

    Both scripts eliminate all the hard work at the command line.

    copy these scripts to your /usr/sbin directory

    to run them simply type the name of the script.

    running the script with no options will activate

    help feature.

    you will have to set the executable bit before they will work.

    in terminal:

    chmod +x /Path/to/file

    example:

    chmod +x ~/Desktop/mksecret

    then copy them to the /usr/sbin directory,

    example:

    sudo cp ~/Desktop/mksecret /usr/sbin

    Kj