diff --git a/vtlib/Vtiger/Functions.php b/vtlib/Vtiger/Functions.php
index 1cfecae8c9be54549e2715f5840946ec4bdb952b..3bf9236817a3778cc5d102ad22574039af597584 100644
--- a/vtlib/Vtiger/Functions.php
+++ b/vtlib/Vtiger/Functions.php
@@ -1069,7 +1069,7 @@ class Vtiger_Functions {
 		if ($mode == 'CRYPT') {
 			$salt = null;
 			if (function_exists('password_hash')) { // php 5.5+
-				$salt = password_hash();
+				$salt = password_hash($password, PASSWORD_DEFAULT);
 			} else {
 				$salt = '$2y$11$'.str_replace("+",".",substr(base64_encode(openssl_random_pseudo_bytes(17)),0,22));
 			}