mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
Upgrade note about Security updated
This commit is contained in:
@ -84,6 +84,9 @@ Upgrade from Yii 2.0 Beta
|
||||
'cryptBlockSize' => 16,
|
||||
'cryptKeySize' => 24,
|
||||
'derivationIterations' => 1000,
|
||||
'deriveKeyStrategy' => 'hmac', // for PHP version < 5.5.0
|
||||
//'deriveKeyStrategy' => 'pbkdf2', // for PHP version >= 5.5.0
|
||||
'useDeriveKeyUniqueSalt' => false,
|
||||
],
|
||||
// ...
|
||||
],
|
||||
|
||||
@ -79,7 +79,7 @@ class Security extends Component
|
||||
/**
|
||||
* @var boolean whether to generate unique salt while deriving encryption key.
|
||||
* If enabled (recommended) this option increases encrypted text length, but provide more security.
|
||||
* If disabled this option reduces encrypted text length, but also reduce security.
|
||||
* If disabled this option reduces encrypted text length, but also reduces security.
|
||||
*/
|
||||
public $useDeriveKeyUniqueSalt = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user