Fully unmount volume?
If you want it to ask for the password again, assuming it hasn't been stored in your Keychain, you need to eject the disk image, e.g.:
 diskutil eject projects

BTW, the disk image is mounted at /Volumes/ not the Desktop. (In Terminal, run the mount command.) It just gives access to it from the icon on the Desktop