Launch Disk Utility, and select File > New > Blank Disk Image. Set the size to whatever you want, set encryption to AES-128, and set the format to "Sparse disk image". Create it, and specify a password. This will give you a read/write disk image that will dynamically resize itself to fit the data you store in it (up to the amount you specified under "size").