diff --git a/lib/SimpleSAML/Utils/Crypto.php b/lib/SimpleSAML/Utils/Crypto.php
index c9873096ec5db6b1ff32b039a686622fbd356463..9c22461d969c47a48e349a2247bf84c0e740f009 100644
--- a/lib/SimpleSAML/Utils/Crypto.php
+++ b/lib/SimpleSAML/Utils/Crypto.php
@@ -398,7 +398,7 @@ class Crypto
                 throw new \InvalidArgumentException('Invalid input parameter.');
             }
 
-            return password_hash($password, PASSWORD_BCRYPT);
+            return password_hash($password, PASSWORD_DEFAULT);
         }
     }