I'm working on a project and I have to store the database credentials encrypted and when the connection is going to happen I should decrypt (database name, database password) and create the connection.
How can I achive this using Phalcon? I found that it is possible to intercept database related events (before/after query) but nothing like "before connection".
Can someone help me with this? Thank you!