use openssl to create encryption key

This commit is contained in:
Uwe Steinmann 2023-04-18 20:08:44 +02:00
parent 2d9297c668
commit 63ee505c0f

View File

@ -31,7 +31,7 @@ if(!defined("SEEDDMS_INSTALL") && file_exists($settings->_configFileDir."/ENABLE
/* Set an encryption key if is not set */
if(!trim($settings->_encryptionKey)) {
$settings->_encryptionKey = md5(uniqid());
$settings->_encryptionKey = bin2hex(openssl_random_pseudo_bytes(16));
$settings->save();
}