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
				
				913 B
			
		
		
			
		
	
	
					30 lines
				
				913 B
			| 
											13 years ago
										 | <?php
 | ||
|  | /**
 | ||
|  |  * @link http://www.yiiframework.com/
 | ||
| 
											13 years ago
										 |  * @copyright Copyright (c) 2008 Yii Software LLC
 | ||
| 
											13 years ago
										 |  * @license http://www.yiiframework.com/license/
 | ||
|  |  */
 | ||
|  | 
 | ||
| 
											13 years ago
										 | namespace yii\helpers;
 | ||
| 
											13 years ago
										 | 
 | ||
|  | /**
 | ||
| 
											13 years ago
										 |  * SecurityHelper provides a set of methods to handle common security-related tasks.
 | ||
| 
											13 years ago
										 |  *
 | ||
| 
											13 years ago
										 |  * In particular, SecurityHelper supports the following features:
 | ||
| 
											13 years ago
										 |  *
 | ||
| 
											13 years ago
										 |  * - Encryption/decryption: [[encrypt()]] and [[decrypt()]]
 | ||
|  |  * - Data tampering prevention: [[hashData()]] and [[validateData()]]
 | ||
|  |  * - Password validation: [[generatePasswordHash()]] and [[validatePassword()]]
 | ||
| 
											13 years ago
										 |  *
 | ||
| 
											13 years ago
										 |  * Additionally, SecurityHelper provides [[getSecretKey()]] to support generating
 | ||
|  |  * named secret keys. These secret keys, once generated, will be stored in a file
 | ||
|  |  * and made available in future requests.
 | ||
| 
											13 years ago
										 |  *
 | ||
| 
											13 years ago
										 |  * @author Qiang Xue <qiang.xue@gmail.com>
 | ||
| 
											13 years ago
										 |  * @author Tom Worster <fsb@thefsb.org>
 | ||
|  |  * @since 2.0
 | ||
|  |  */
 | ||
| 
											13 years ago
										 | class SecurityHelper extends base\SecurityHelper
 | ||
| 
											13 years ago
										 | {
 | ||
| 
											13 years ago
										 | }
 |