added password hasher for old versions of php