How to secure the php code?

前端 未结 5 1637
臣服心动
臣服心动 2021-01-24 17:19

I created now a Javascript Code that get the php variable into javascript code, my issue that the php variable is important and I don\'t want any can see this variable is there

5条回答
  •  爱一瞬间的悲伤
    2021-01-24 17:57

    First you need to understand that Javascript is executed on the client side, every piece of code and variable are in some way accessible by someone with some programming background.

    Although you can obfuscate the source code and encrypt the variable to make it harder to read, there is no 100% protection when things happen on client side.

提交回复
热议问题