Mautic Data Protection

How to encryption database user password and hide the password from the local.php file?

You could store password in env. variable and then initialize db_password in local.php.