@@ -15,7 +15,7 @@ class Encryption extends BaseConfig
1515{
1616 /*
1717 |--------------------------------------------------------------------------
18- | Encryption Key
18+ | Encryption Key Starter
1919 |--------------------------------------------------------------------------
2020 |
2121 | If you use the Encryption class you must set an encryption key.
@@ -30,27 +30,40 @@ class Encryption extends BaseConfig
3030 | Encryption driver to use
3131 |--------------------------------------------------------------------------
3232 |
33- | One of the supported drivers, eg 'openssl ' or 'mcrypt '.
34- | The default driver, if you don't specify one, is 'openssl '.
33+ | One of the supported drivers, eg 'OpenSSL ' or 'Sodium '.
34+ | The default driver, if you don't specify one, is 'OpenSSL '.
3535 */
36- public $ driver = 'openssl ' ;
36+ public $ driver = 'OpenSSL ' ;
3737
3838 /*
3939 |--------------------------------------------------------------------------
4040 | Encryption Cipher
4141 |--------------------------------------------------------------------------
4242 |
43- | Name of the encryption cipher to use, eg 'aes-256' or 'blowfish'
43+ | Name of the encryption cipher to use, eg 'aes-256' or 'blowfish'.
44+ | The cipher must be supported by your designated driver.
4445 */
45- public $ cipher = 'aes -256 ' ;
46+ public $ cipher = 'AES -256-CBC ' ;
4647
4748 /*
4849 |--------------------------------------------------------------------------
49- | Encryption mode
50+ | Authentication digest
5051 |--------------------------------------------------------------------------
5152 |
52- | The encryption mode to use, eg 'cbc' or 'stream'
53+ | HMAC digest algorithm to use, empty for none.
54+ | Values: SHA512, SHA384, SHA256, or SHA224.
5355 */
54- public $ mode = 'cbc ' ;
56+ public $ digest = 'SHA512 ' ;
57+
58+ /*
59+ |--------------------------------------------------------------------------
60+ | Result encoding
61+ |--------------------------------------------------------------------------
62+ |
63+ | Which, if any, encoding to apply to encrypted results and to assume
64+ | provided ciphertext.
65+ | Values; empty (for no encoding), base64 or hex.
66+ */
67+ public $ encoding = 'base64 ' ;
5568
5669}
0 commit comments