You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
882 B
30 lines
882 B
12 years ago
|
<?php
|
||
|
/**
|
||
|
* @link http://www.yiiframework.com/
|
||
12 years ago
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
||
12 years ago
|
* @license http://www.yiiframework.com/license/
|
||
|
*/
|
||
|
|
||
12 years ago
|
namespace yii\helpers;
|
||
12 years ago
|
|
||
|
/**
|
||
12 years ago
|
* Security provides a set of methods to handle common security-related tasks.
|
||
12 years ago
|
*
|
||
12 years ago
|
* In particular, Security supports the following features:
|
||
12 years ago
|
*
|
||
12 years ago
|
* - Encryption/decryption: [[encrypt()]] and [[decrypt()]]
|
||
|
* - Data tampering prevention: [[hashData()]] and [[validateData()]]
|
||
|
* - Password validation: [[generatePasswordHash()]] and [[validatePassword()]]
|
||
12 years ago
|
*
|
||
12 years ago
|
* Additionally, Security provides [[getSecretKey()]] to support generating
|
||
12 years ago
|
* named secret keys. These secret keys, once generated, will be stored in a file
|
||
|
* and made available in future requests.
|
||
12 years ago
|
*
|
||
12 years ago
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
||
12 years ago
|
* @author Tom Worster <fsb@thefsb.org>
|
||
|
* @since 2.0
|
||
|
*/
|
||
12 years ago
|
class Security extends SecurityBase
|
||
12 years ago
|
{
|
||
12 years ago
|
}
|