0

Since source code is viewable in a electron desktop application is there a way to obfuscate or encrypt it? We are investigating electron for a future app but worried it can be reverse engineered. How would I prevent the source code from being viewed?

Luke101
  • 63,072
  • 85
  • 231
  • 359
  • Short answer: you cannot (which is true for any kind of application) - you can only make it harder to read/reverse engineer – UnholySheep Apr 08 '18 at 19:02
  • 1
    don't think it is possible but have a look at http://enclosejs.com/ if it helps – S4beR Apr 08 '18 at 19:15
  • [jsfuck.com](https://jsfuck.com)? That's certainly one way to obfuscate the JS, at least... – jhpratt Apr 08 '18 at 19:20
  • @jhpratt That just increases the file size, and does not help anything. It does even less then uglify. [WANNA DECODE JSFUCK?](https://enkhee-osiris.github.io/Decoder-JSFuck/) – t.niese Apr 08 '18 at 19:23
  • @t.niese I didn't say it would help. OP asked for ways to obfuscate or encrypt. It certainly obfuscates it. – jhpratt Apr 08 '18 at 19:25
  • A Good question with a simple answer: you can't! – Abslen Char Apr 08 '18 at 19:29
  • @jhpratt With jsfuck your are able to get the original source back. If jsfuck counts as obfuscation, then you could also say, zip the source file, because it has the same level of _"obfusaction"_ but the benefit that the file size would be decreased. – t.niese Apr 08 '18 at 19:32

0 Answers0