Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Encrypted disk images are a powerful tool for securing sensitive data on your macOS system. They allow you to create a virtual disk that can be encrypted and password-protected, ensuring that only authorized users can access the contents. This is particularly important for protecting personal information, confidential business documents, or any other sensitive data from unauthorized access. In this article, we will explore how to create and manage encrypted disk images using built-in macOS tools like Disk Utility and Terminal.
Examples:
Open Disk Utility:
Applications
> Utilities
> Disk Utility
.Create a New Image:
File
in the menu bar, then select New Image
> Blank Image
.Configure the Disk Image:
Mac OS Extended (Journaled)
.128-bit AES encryption
or 256-bit AES encryption
for stronger security.Single partition - GUID Partition Map
.read/write disk image
.Set a Password:
Create the Image:
Save
to create the encrypted disk image.Open Terminal:
Applications
> Utilities
> Terminal
.Create an Encrypted Disk Image:
hdiutil create -size 100m -fs HFS+J -encryption -type SPARSEBUNDLE -volname "SecureDisk" ~/Desktop/SecureDisk.sparsebundle
-size 100m
: Specifies the size of the disk image (100 MB in this case).-fs HFS+J
: Sets the file system to Mac OS Extended (Journaled).-encryption
: Enables encryption.-type SPARSEBUNDLE
: Creates a sparse bundle disk image, which can grow as needed.-volname "SecureDisk"
: Sets the volume name.~/Desktop/SecureDisk.sparsebundle
: Specifies the path and name of the disk image file.Set a Password:
Mount the Disk Image:
hdiutil attach ~/Desktop/SecureDisk.sparsebundle
Unmount the Disk Image:
hdiutil detach /Volumes/SecureDisk