Import cryptographic signature functions from XE 1.8.23

This commit is contained in:
Kijin Sung 2016-08-02 16:30:33 +09:00
parent 09234c7b55
commit 910f7220e6
3 changed files with 51 additions and 2 deletions

View file

@ -160,7 +160,7 @@ class ConfigParser
// Create new crypto keys.
$config['crypto']['encryption_key'] = Security::getRandom(64, 'alnum');
$config['crypto']['authentication_key'] = Security::getRandom(64, 'alnum');
$config['crypto']['authentication_key'] = $db_info->secret_key ?: Security::getRandom(64, 'alnum');
$config['crypto']['session_key'] = Security::getRandom(64, 'alnum');
// Convert language configuration.