¿Any way to encrypt Google Apps Script code?

97 views
Skip to first unread message

César Mellizo

unread,
Jun 6, 2019, 4:12:30 PM6/6/19
to Google Apps Script Community

I need to know if it is currently possible to encrypt / hide the code of a web application that our team developed in G.A.S. . Is important because we need that customers may not have access to the code, and copy it.


Thank you in advance.

Message has been deleted

Martin Hawksey

unread,
Jun 7, 2019, 1:51:36 PM6/7/19
to Google Apps Script Community
If you are talking client side then you might want to search for JavaScript obsification techniques ... some are mentioned here https://stackoverflow.com/q/194397/1027723

Alan Wells

unread,
Jun 7, 2019, 6:13:25 PM6/7/19
to Google Apps Script Community
There are two options to protect your server side code:
  1. Publish an Add-on that the client must install to a Google document (Form, Sheet, Doc)  An "editor" add-on.
  2. Add your Apps Script code as a library to their Apps Script file
If the client will have the Apps Script file in their Drive, then a library can (sort of) hide your code by having their Apps Script file run code from an Apps Script file in your account, where your Apps Script file is added to the clients Apps Script file as a "library."

An add-on can't be published to a Web App. 
Reply all
Reply to author
Forward
0 new messages