SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/encryption.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. /**
  18.  * @package Encrypt
  19.  *
  20.  * Encrypt configuration is defined in groups which allows you to easily switch
  21.  * between different encryption settings for different uses.
  22.  * Note: all groups inherit and overwrite the default group.
  23.  *
  24.  * Group Options:
  25.  * key - Encryption key used to do encryption and decryption. The default option
  26.  * should never be used for a production website.
  27.  *
  28.  * For best security, your encryption key should be at least 16 characters
  29.  * long and contain letters, numbers, and symbols.
  30.  * @note Do not use a hash as your key. This significantly lowers encryption entropy.
  31.  *
  32.  * mode - MCrypt encryption mode. By default, MCRYPT_MODE_NOFB is used. This mode
  33.  * offers initialization vector support, is suited to short strings, and
  34.  * produces the shortest encrypted output.
  35.  * @see http://php.net/mcrypt
  36.  *
  37.  * cipher - MCrypt encryption cipher. By default, the MCRYPT_RIJNDAEL_128 cipher is used.
  38.  * This is also known as 128-bit AES.
  39.  * @see http://php.net/mcrypt
  40.  */
  41. $config['default'] = array
  42. (
  43. 'key' => 'K0H@NA+PHP_7hE-SW!FtFraM3w0R|<',
  44. 'mode' => MCRYPT_MODE_NOFB,
  45. 'cipher' => MCRYPT_RIJNDAEL_128
  46. );
  47.