This topic is locked

Dynamically change the encryption key

5/24/2020 3:53:10 AM
PHPRunner General questions
Max author

In a project I use database-based encryption, but I need to use different encryption keys based on a specific parameter.
I've seen that the encryption key is written to the ConnectionManager.php file ($data['EncryptInfo']['key']).
Is it possible to change it dynamically from AfterAppInit function?
Many thanks in advance.