Open Disk Utility, choose New Image from the toolbar. Set the name and size to your needs, make sure you choose some kind of encryption (either will work), then hit Create. It will ask for the password.
If you want to change the password later, choose Change password ... from the Image menu.