Moved the password generator to a lib