Home >Backend Development >PHP Tutorial >During development, how to securely manage database accounts, passwords, and secret keys in the official environment?
During development, how are the database accounts, passwords, and keys in the official environment stored?
Store to configuration file?
Store in environment variables?
This way developers can see these passwords.
How can we let fewer people know these key passwords?
During development, how are the database accounts, passwords, and keys in the official environment stored?
Store to configuration file?
Store in environment variables?
This way developers can see these passwords.
How can we let fewer people know these key passwords?
OP configure a directory with high permissions and write the configuration. In this way, only the OP can maintain the online account, and other programs or employees can only read it. If even internal employees of the company are not allowed to see it, then. . .
It can be encrypted and stored. The simplest one is base64, which can be used to deal with newbies, or it can be made into a class library and then packed or something. In fact, it is not necessary