-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:bcit-ci/CodeIgniter4 into develop
- Loading branch information
Showing
20 changed files
with
2,011 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
namespace Config; | ||
|
||
use CodeIgniter\Config\BaseConfig; | ||
|
||
/** | ||
* Encryption configuration. | ||
* | ||
* These are the settings used for encryption, if you don't pass a parameter | ||
* array to the encrypter for creation/initialization. | ||
* | ||
*/ | ||
class Encryption extends BaseConfig | ||
{ | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| Encryption Key | ||
|-------------------------------------------------------------------------- | ||
| | ||
| If you use the Encryption class you must set an encryption key. | ||
| You need to ensure it is long enough for the cipher and mode you plan to use. | ||
| See the user guide for more info. | ||
*/ | ||
|
||
public $key = ''; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Encryption driver to use | ||
|-------------------------------------------------------------------------- | ||
| | ||
| One of the supported drivers, eg 'openssl' or 'mcrypt'. | ||
| The default driver, if you don't specify one, is 'openssl'. | ||
*/ | ||
public $driver = 'openssl'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Encryption Cipher | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Name of the encryption cipher to use, eg 'aes-256' or 'blowfish' | ||
*/ | ||
public $cipher = 'aes-256'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Encryption mode | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The encryption mode to use, eg 'cbc' or 'stream' | ||
*/ | ||
public $mode = 'cbc'; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.