6

I have created an electron application and packaged it with electron builder, there's always a .asar file in some resources folder after application installation that can easily be extracted with the help of npm libraries like asar. Is there any way to restrict the end user without unpacking the asar ?

we can just use asar extract app.asar myfolder then the entire source code of application is copied into myfolder. If I store the license in the source code then it would be easy to change the license by unpacking the asar.

Expected : Way to restrict the end user without unpacking the asar ?

1 Answers1

0

If you are asking how to protect your license key or some other private key, then the answer is, you can't. If you deliver the license key in the client package to the client, they have it. Try to work around your issue with an alternate solution. Try putting the license key on a server that you can connect to from the client.

Scott
  • 3,736
  • 2
  • 26
  • 44