Java application to store passwords (command-line version)