diff --git a/src/PasswordHasherFactory.php b/src/PasswordHasherFactory.php
index <HASH>..<HASH> 100644
--- a/src/PasswordHasherFactory.php
+++ b/src/PasswordHasherFactory.php
@@ -14,7 +14,8 @@
  */
 namespace Auth;
 
-use Auth\PasswordHasher\PasswordHasherInterface;
+use Auth\PasswordHasher\AbstractPasswordHasher;
+use Cake\Core\App;
 use RuntimeException;
 
 /**
@@ -43,9 +44,14 @@ class PasswordHasherFactory
             unset($config['className']);
         }
 
-        $hasher = new $class($config);
-        if (!($hasher instanceof PasswordHasherInterface)) {
-            throw new RuntimeException('Password hasher must implment PasswordHasherInterface.');
+        $className = App::className($class, 'Auth\PasswordHasher', 'PasswordHasher');
+        if ($className === false) {
+            throw new RuntimeException(sprintf('Password hasher class "%s" was not found.', $class));
+        }
+
+        $hasher = new $className($config);
+        if (!($hasher instanceof AbstractPasswordHasher)) {
+            throw new RuntimeException('Password hasher must extend AbstractPasswordHasher class.');
         }
 
         return $hasher;
Updating the PasswordHasherFactory