added a method to calculate the partial hash needed to verify passwords