crypt.php clean up

clean-up the crypt.php. Marked methods as private if they are only used within the class and removed some unused methods.