diff --git a/bin/pwgen.php b/bin/pwgen.php
index 66f8d48675d033803c8e2d638bc0f926f45021af..0af9b1ca48b86c8432aa40e7e2acc1ed47aa56b5 100755
--- a/bin/pwgen.php
+++ b/bin/pwgen.php
@@ -21,5 +21,5 @@ if (empty($password)) {
     exit(1);
 }
 
-$cryptoUtils = new SimpleSAML\Utils\Crypt();
+$cryptoUtils = new SimpleSAML\Utils\Crypto();
 echo "\n  " . $cryptoUtils->pwHash($password) . "\n\n";