0

Hi I am developing an application in phonegap. For symbian platform we create .zip file of www folder and then change its extension to .wgz because of this any one can see actual code of js and html file by extracting .wgz folder. Then what is security? How to restrict user from seeing actual code? Any suggestion will be appreciated.Thanks in advance

PPD
  • 5,660
  • 12
  • 52
  • 86

1 Answers1

1

The HTML engine running the app needs to see the HTML and JS anyway, so there's no way to make it completely invisible. However, you can obfuscate it so that it's unreadable to humans. See this QA:

How can I obfuscate (protect) JavaScript?

Community
  • 1
  • 1
Ilmo Euro
  • 4,925
  • 1
  • 27
  • 29