Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this provide a way to protect the javascript source code? #8

Open
patakijv opened this issue Mar 7, 2017 · 2 comments
Open

Does this provide a way to protect the javascript source code? #8

patakijv opened this issue Mar 7, 2017 · 2 comments

Comments

@patakijv
Copy link

patakijv commented Mar 7, 2017

When using motto (or even otto), is it possible to have the javascript source protected into the compiled golang if the javascript is already non-trivial (vs just a few lines of code).

@ddliu
Copy link
Owner

ddliu commented Mar 8, 2017

Yes, you can write your code as a module, and run it with the motto.Run(moduleName) method.

Please refer to the sample module underscore (underscore/underscore.go) which embeds some javascript source code.

@ddliu
Copy link
Owner

ddliu commented Mar 8, 2017

But I don't think it's that safe from cracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants