Hash passwords for db storage