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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
ca9d4867
Commit
ca9d4867
authored
Jul 29, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style
parent
1f31f277
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
Security.php
framework/base/Security.php
+16
-15
TagDependency.php
framework/caching/TagDependency.php
+0
-1
No files found.
framework/base/Security.php
View file @
ca9d4867
...
...
@@ -30,20 +30,6 @@ use Yii;
class
Security
extends
Component
{
/**
* @var integer derivation iterations count.
* Set as high as possible to hinder dictionary password attacks.
*/
public
$derivationIterations
=
100000
;
/**
* @var string strategy, which should be used to generate password hash.
* Available strategies:
* - 'password_hash' - use of PHP `password_hash()` function with PASSWORD_DEFAULT algorithm.
* This option is recommended, but it requires PHP version >= 5.5.0
* - 'crypt' - use PHP `crypt()` function.
*/
public
$passwordHashStrategy
=
'crypt'
;
/**
* Cipher algorithm for mcrypt module.
* AES has 128-bit block size and three key sizes: 128, 192 and 256 bits.
* mcrypt offers the Rijndael cipher with block sizes of 128, 192 and 256
...
...
@@ -73,8 +59,23 @@ class Security extends Component
*/
const
AUTH_KEY_INFO
=
'AuthorizationKey'
;
/**
* @var integer derivation iterations count.
* Set as high as possible to hinder dictionary password attacks.
*/
public
$derivationIterations
=
100000
;
/**
* @var string strategy, which should be used to generate password hash.
* Available strategies:
* - 'password_hash' - use of PHP `password_hash()` function with PASSWORD_DEFAULT algorithm.
* This option is recommended, but it requires PHP version >= 5.5.0
* - 'crypt' - use PHP `crypt()` function.
*/
public
$passwordHashStrategy
=
'crypt'
;
private
$_cryptModule
;
/**
* Encrypts data using a password.
* Derives keys for encryption and authentication from the password using PBKDF2 and a random salt,
...
...
@@ -178,7 +179,7 @@ class Security extends Component
* @param bool $passwordBased set true to use password-based key derivation
* @param string $secret the encryption password or key
* @param string $info context/application specific information, e.g. a user ID
*
See RFC 5869 Section 3.2 @link https://tools.ietf.org/html/rfc5869
*
See [RFC 5869 Section 3.2](https://tools.ietf.org/html/rfc5869#section-3.2) for more details.
* @return string the encrypted data
* @throws Exception if PHP Mcrypt extension is not loaded or failed to be initialized
* @see decrypt()
...
...
framework/caching/TagDependency.php
View file @
ca9d4867
...
...
@@ -7,7 +7,6 @@
namespace
yii\caching
;
/**
* TagDependency associates a cached data item with one or multiple [[tags]].
*
...
...
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