Index: branches/5.3.x/core/install.php =================================================================== diff -u -N -r16519 -r16723 --- branches/5.3.x/core/install.php (.../install.php) (revision 16519) +++ branches/5.3.x/core/install.php (.../install.php) (revision 16723) @@ -1,6 +1,6 @@ toolkit->CallPrerequisitesMethod('core/', 'CheckSystemRequirements'); @@ -836,6 +836,24 @@ } } + if ( !$this->toolkit->systemConfig->get('SecurityHmacKey', 'Misc') + || !$this->toolkit->systemConfig->get('SecurityEncryptionKey', 'Misc') + ) { + $this->toolkit->systemConfig->set( + 'SecurityHmacKey', + 'Misc', + base64_encode(SecurityGenerator::generateString( + SecurityEncrypter::HASHING_KEY_LENGTH, + SecurityGenerator::CHAR_ALNUM | SecurityGenerator::CHAR_SYMBOLS + )) + ); + $this->toolkit->systemConfig->set( + 'SecurityEncryptionKey', + 'Misc', + SecurityGenerator::generateBytes(SecurityEncrypter::ENCRYPTION_KEY_LENGTH) + ); + } + $this->toolkit->systemConfig->save(); break;