Merge branch 'maint/7.0'
[ninja.git] / system / config / encryption.php
blob589a9def8a08616ccbec41f2c3f800ca950af724
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * @package Encrypt
5 * Encrypt configuration is defined in groups which allows you to easily switch
6 * between different encryption settings for different uses.
7 * Note: all groups inherit and overwrite the default group.
9 * Group Options:
10 * key - Encryption key used to do encryption and decryption. The default option
11 * should never be used for a production website.
13 * For best security, your encryption key should be at least 16 characters
14 * long and contain letters, numbers, and symbols.
15 * @note Do not use a hash as your key. This significantly lowers encryption entropy.
17 * mode - MCrypt encryption mode. By default, MCRYPT_MODE_NOFB is used. This mode
18 * offers initialization vector support, is suited to short strings, and
19 * produces the shortest encrypted output.
20 * @see http://php.net/mcrypt
22 * cipher - MCrypt encryption cipher. By default, the MCRYPT_RIJNDAEL_128 cipher is used.
23 * This is also known as 128-bit AES.
24 * @see http://php.net/mcrypt
26 $config['default'] = array
28 'key' => 'K0H@NA+PHP_7hE-SW!FtFraM3w0R|<',
29 'mode' => MCRYPT_MODE_NOFB,
30 'cipher' => MCRYPT_RIJNDAEL_128