OSX – how to create password-protected files/folders

Actually, you can’t set password for folder in Mac OSX. But there is a workaround to protect you files/folders, it’s creating a password-protected disk image.

A disk image is a single file (.dmg) that can contains files and folders. When mounted, it becomes a folder in your filesystem, and you can manipulate it like normal folder. You can imagine it’s just a USB disk.

Here is how to create and set password for that disk image file.

  1. Open Disk Utility (located in /Applications/Utilities/). Click the New Image button, and input information:
    1. Save As: set the name you want for the disk image (.dmg) file
    2. Where: set the path to where you want to keep disk image
    3. Size: maximum size of disk image. It will be the limitation of files in your disk image, so set it large enough.
    4. Encryption: choose 128-bit AES encryption (and/or 256-bit AES in Mac OS X v10.5 or later). Important: you must choose an encryption to set password for your disk image.
    5. Click the Create button.
  2. Set password in the dialog window that appears. Important: uncheck “Remember password (add to keychain)”. If it’s checked, your content will be revealed. If you forget the password, data stored in the encrypted disk image cannot be retrieved
  3. Click OK.

That’s it, your password-protected storage is ready to used. To open the password-protected folder, just double click the created disk image file (.dmg), and enter the password. It’s will be mounted as an disk drive, in left panel in Finder. All your content are there.

Remember to eject that disk after finished working.

Android Build System (Application only)

Simple: Android Build System helps to create final APK file, from all source code, image, raw file…
This is the system:

android-build-system

  • aapt (Android Asset Packaging Tool):
    • Combine resource (image, sound…)
    • Make R.java – assign resource ID for Java code refer to
  • aidl (Android Interface Definition Language) – tool convert Android interface to Java code
  • dex