Like this, if I put the database password in the entry file, is it safe?
If it is not safe, then how to put the generally more important information more safely?
女神的闺蜜爱上我2017-06-22 11:56:35
The code is parsed on the server side and will not be exposed to the front end
仅有的幸福2017-06-22 11:56:35
Unless you make the file that stores the database address/user name/database name/password public, or you leak the server password and other extreme circumstances (if you don’t have any security awareness)...otherwise you won’t be able to see it.
伊谢尔伦2017-06-22 11:56:35
It is not safe. Writing such sensitive information in the code will risk being exposed by version control tools. It is generally better to use a separate configuration file or environment variable
迷茫2017-06-22 11:56:35
Don’t write your password in the code. If you submit it to a public code base, it will be seen by others. Searching for password in github will bring up a lot of information
This password leak has no impact on your project, but it will be troublesome if it happens to be a password you often use