Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
25a36377
Commit
25a36377
authored
Jun 27, 2014
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade note about `Security` updated
parent
5a429857
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
UPGRADE.md
framework/UPGRADE.md
+3
-0
Security.php
framework/base/Security.php
+1
-1
No files found.
framework/UPGRADE.md
View file @
25a36377
...
@@ -84,6 +84,9 @@ Upgrade from Yii 2.0 Beta
...
@@ -84,6 +84,9 @@ Upgrade from Yii 2.0 Beta
'cryptBlockSize' => 16,
'cryptBlockSize' => 16,
'cryptKeySize' => 24,
'cryptKeySize' => 24,
'derivationIterations' => 1000,
'derivationIterations' => 1000,
'deriveKeyStrategy' => 'hmac', // for PHP version < 5.5.0
//'deriveKeyStrategy' => 'pbkdf2', // for PHP version >= 5.5.0
'useDeriveKeyUniqueSalt' => false,
],
],
// ...
// ...
],
],
...
...
framework/base/Security.php
View file @
25a36377
...
@@ -79,7 +79,7 @@ class Security extends Component
...
@@ -79,7 +79,7 @@ class Security extends Component
/**
/**
* @var boolean whether to generate unique salt while deriving encryption key.
* @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 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 reduce
s
security.
*/
*/
public
$useDeriveKeyUniqueSalt
=
true
;
public
$useDeriveKeyUniqueSalt
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment