Skip to content

Commit be93000

Browse files
committed
feat(encryption): Add previous keys fallback variables in encryption config file.
1 parent 7837aa0 commit be93000

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

app/Config/Encryption.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ class Encryption extends BaseConfig
2323
*/
2424
public string $key = '';
2525

26+
/**
27+
* --------------------------------------------------------------------------
28+
* Previous Encryption Keys fallback enabled
29+
* --------------------------------------------------------------------------
30+
* If you want to enable decryption using previous keys, set this to true.
31+
* See the user guide for more info.
32+
*/
33+
public bool $previousKeysFallbackEnabled = false;
34+
35+
/**
36+
* --------------------------------------------------------------------------
37+
* Previous Encryption Keys
38+
* --------------------------------------------------------------------------
39+
* If you want to enable decryption using previous keys, set them here.
40+
* See the user guide for more info.
41+
*/
42+
public array $previousKeys = [];
43+
2644
/**
2745
* --------------------------------------------------------------------------
2846
* Encryption Driver to Use

0 commit comments

Comments
 (0)