I need to use aes_encypt(field, key) and aes_decrypt(field, key) in my project. How can I add it in my table or entity in a way it can works automatic like a virtualField.
Sample
$table->find([‘fields’ => [‘encrypted’]);…
and it get converted to SELECT AES_DECRYPT(‘encrypted’, ‘key’)…