Is it dangerous to have a plain text credentials.js or should you encrypt it?
If you mean to ask whether storing the user credentials as plain text in a javascript file is dangerous, the answer is a BIG YES. There are plenty of reasons behind it.
So the direct answer to the question is We should not store the credentials as plain text. So what should we do then? The answer is the credentials should be encrypted and stored in the javascript files. It should be decrypted only when it requested from the browser so that it will not be exposed to the outsiders. It will also improves the security of the website/application.
Get Answers For Free
Most questions answered within 1 hours.