Function computeNewPasswordHash