From 63ee505c0fbeab236282ee9343b46e187b7a6707 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 18 Apr 2023 20:08:44 +0200 Subject: [PATCH] use openssl to create encryption key --- inc/inc.Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/inc.Settings.php b/inc/inc.Settings.php index b19345afb..90b26ac24 100644 --- a/inc/inc.Settings.php +++ b/inc/inc.Settings.php @@ -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(); }