Recently I needed to develop a method for creating password protected backups of my application’s data. The original idea was to create a password protected zip file which I could just do using /usr/bin/zip. Unfortunately, the OSX archiver utility cannot open password protected zip files, making it very difficult for users to actually open the zip files.
So after a bit of research I came across http://github.com/andreyvit/yoursway-create-dmg. This guy has created an awesome little shell script that allows you to create .dmg files with pretty backgrounds and all sorts of other things. I forked it here so that I could add the ability to set a password. And then I just execute the shell file using the NativeProcess API built in to Adobe AIR 2. Here is the javascript:
My name is Aaron Forsander and I have a blog. 





Track comments via RSS 2.0 feed. Feel free to post the comment, or trackback from your web site.
No one cares about you. <3