diff options
| author | 2025-10-04 14:32:18 +0200 | |
|---|---|---|
| committer | 2025-10-04 14:32:18 +0200 | |
| commit | 57e1a375cbd2db9741ff19167813344f8eff5772 (patch) | |
| tree | 741fc3820a205ab3ea84a03f6b72615dd8238f99 /lib/lib_install.php | |
| parent | be49726ebb700aca030004d367c029082cfc6427 (diff) | |
Strengthen some crypto (#8061)
For login, tokens, nonces
Diffstat (limited to 'lib/lib_install.php')
| -rw-r--r-- | lib/lib_install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_install.php b/lib/lib_install.php index 44bedd218..28827f0d6 100644 --- a/lib/lib_install.php +++ b/lib/lib_install.php @@ -73,7 +73,7 @@ function checkRequirements(string $dbType = ''): array { } function generateSalt(): string { - return sha1(uniqid('' . mt_rand(), true) . implode('', stat(__FILE__) ?: [])); + return hash('sha256', uniqid(more_entropy: true) . implode('', stat(__FILE__) ?: []) . random_bytes(32)); } /** |
