Revert "Refactored the methods into a HashPassword class"

This reverts commit a460e53fd46aef111be816a805961b1f1c30ae0d.