I managed to get the first and second passwords, but not the third yet.
My method is to get all the diamonds into the processing plant, usually a couple at a time, then shoot one of the enemies and make a run for the exit with all 8 for maximum points