Security.php 882 Bytes
Newer Older
Qiang Xue committed
1 2 3
<?php
/**
 * @link http://www.yiiframework.com/
Qiang Xue committed
4
 * @copyright Copyright (c) 2008 Yii Software LLC
Qiang Xue committed
5 6 7
 * @license http://www.yiiframework.com/license/
 */

Qiang Xue committed
8
namespace yii\helpers;
Qiang Xue committed
9 10

/**
11
 * Security provides a set of methods to handle common security-related tasks.
Qiang Xue committed
12
 *
13
 * In particular, Security supports the following features:
Qiang Xue committed
14
 *
Qiang Xue committed
15 16 17
 * - Encryption/decryption: [[encrypt()]] and [[decrypt()]]
 * - Data tampering prevention: [[hashData()]] and [[validateData()]]
 * - Password validation: [[generatePasswordHash()]] and [[validatePassword()]]
Qiang Xue committed
18
 *
19
 * Additionally, Security provides [[getSecretKey()]] to support generating
Qiang Xue committed
20 21
 * named secret keys. These secret keys, once generated, will be stored in a file
 * and made available in future requests.
Qiang Xue committed
22
 *
Qiang Xue committed
23
 * @author Qiang Xue <qiang.xue@gmail.com>
Qiang Xue committed
24 25 26
 * @author Tom Worster <fsb@thefsb.org>
 * @since 2.0
 */
27
class Security extends SecurityBase
Qiang Xue committed
28
{
Zander Baldwin committed
29
}