This should be done with the PassHash class instead