File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 14241424/**
14251425 * Hashing
14261426 *
1427- * Nextcloud uses the Argon2 algorithm (with PHP >= 7.2) to create hashes by its
1428- * own and exposes its configuration options as following. More information can
1429- * be found at: https://www.php.net/manual/en/function.password-hash.php
1427+ * Nextcloud uses the Argon2 algorithm (available with PHP >= 7.2 if compiled
1428+ * with it) to create hashes by its own and exposes its configuration options as
1429+ * following. The default depends on the PHP build. More information can be
1430+ * found at: https://www.php.net/manual/en/function.password-hash.php
14301431 */
14311432
14321433/**
14331434 * The allowed maximum memory in KiB to be used by the algorithm for computing a
14341435 * hash. The smallest possible value is 8. Values that undershoot the minimum
14351436 * will be ignored in favor of the default.
14361437 */
1437- 'hashingMemoryCost ' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST ,
1438+ 'hashingMemoryCost ' => 65536 ,
14381439
14391440/**
14401441 * The allowed maximum time in seconds that can be used by the algorithm for
14411442 * computing a hash. The value must be an integer, and the minimum value is 1.
14421443 * Values that undershoot the minimum will be ignored in favor of the default.
14431444 */
1444- 'hashingTimeCost ' => PASSWORD_ARGON2_DEFAULT_TIME_COST ,
1445+ 'hashingTimeCost ' => 4 ,
14451446
14461447/**
14471448 * The allowed number of CPU threads that can be used by the algorithm for
14501451 * threads on the machine. Values that undershoot the minimum will be ignored
14511452 * in favor of the default.
14521453 */
1453- 'hashingThreads ' => PASSWORD_ARGON2_DEFAULT_THREADS ,
1454+ 'hashingThreads ' => 1 ,
14541455
14551456/**
14561457 * The hashing cost used by hashes generated by Nextcloud
You can’t perform that action at this time.
0 commit comments