Add password hashing

Helper and option to generate hashed password on the command line added.