Add hash and compare functionality to password module