12/19/2023 0 Comments Create encrypted folder mac![]() These images can be created using Disk Utility by choosing an option for disk images (i.e., from a folder or a new blank image) from the File > New menu. This method may be a bit cumbersome, and it's not a very good implementation of encryption for files in OS X, either, so if you plan on encrypting collections of files regularly, your best bet is to use alternative means.Īpple's preferred encryption container for files is a disk image, which is a wrapper format that mimics a physical disk (hard drive or DVD). Press Enter, then supply the password to use for the archive, and the encrypted file will appear on your desktop.Zip -e ~/Desktop/archive.zip /Path/to/folder Drag the folder containing your desired files to the Terminal window, so the command looks like the following:.Type the following command, followed by a single space:. ![]() I omitted the password because it’s only a test. Set the_source_file to POSIX path of (choose folder with prompt "Choose target folder to copy-encrypt as disk image") as textĭo shell script "hdiutil create -srcfolder '" & the_source_file & "' -encryption AES-256 -stdinpass -fs HFS+ '" & myDmg & "'"ĭo shell script "hdiutil attach -readwrite '" & (myDmg & ".dmg" as text) & "'" Sorry for my sloppiness set myDmg to POSIX path of ((path to desktop folder as text) & "Test" as text)ĭo shell script "mkdir -p '" & myDmg & "'" ![]() I wrote my original post too quickly, but my original script worked, with the only exception for the encryption command. ![]() The disk image should be encrypted before and after mounting, else why shall I bother to use the commands I Yvan I needed a writable and encrypted disk image. The funny thing now, I can’t add files to the mounting disk, is that the default design of a encrypted disk image? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |