I have a PHP system with a config.php file where the bank passwords are stored, the problem and that the passwords that are stored in this file is very exposed would like to know a safer way of storing these passwords
Below is part of the code:
define ("TIPO_BANCO", "pgsql"); #Tipo de banco utilizado ex: pgsql
define ("LOCALHOST", "localhost");
define ("PORTA", "5432");
define ("BANCO", "teste1");
define ("USUARIO", "teste1");
define ("SENHA", "teste1");
define ("LOCALHOSTCG","localhost");
define ("PORTACG", "5432");
define ("BANCOCG", "teste2");
define ("USUARIOCG", "teste2");
define ("SENHACG", "teste2");