Is there any possibility to encrypt an ASAR package so that possibly malicious actors cannot reverse-engineer my application in virtually no time? So far, I have not found any information on this whatsoever.
Asked
Active
Viewed 1,846 times
1 Answers
0
In short: no.
Javascript cannot be complied or protected. If your Electron Application is on another computer the source code (or at lest the parts that do not lie on a server) are open to the user.

Torf
- 1,154
- 11
- 29
-
the headers and body are encryptable but there are no guides out there on how to do it – Lee Jing Yong Apr 02 '21 at 05:54
-
1I have never heard of an encrypted asar file beside some theoretical concepts. There is in fact a demo on github, but as the description is in japanese I cannot tell what it does or if it really works. https://github.com/toyobayashi/electron-asar-encrypt-demo – Torf Apr 03 '21 at 09:30
-
1Thats in chinese btw. Thank got im chinese haha. If possible i might translate it to english. How did i not encounter this while searching – Lee Jing Yong Apr 04 '21 at 04:53
-
1That could be useful for all. Maybe fork it if it works. – Torf Apr 05 '21 at 05:31