1
I have a PHP system with a config.php file to which are stored the passwords of the database, the problem and those passwords that are stored in this file this very exposed way I would like to know a safer way to store these passwords
follows below a 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");