[bin] Update download.sh, add password retrieval function