mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
use openssl to create encryption key
This commit is contained in:
parent
2d9297c668
commit
63ee505c0f
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user