Encrypt LUA file?

I’m trying to build a small but very useful module. The problem is that i would like to share my module but i’d like to keep my code “secret”. Not because I don’t want you to see it but because people like to screw with it and then ask why it isn’t working like it should.

So is there a way i can make the file be unreadable to humans? Like random characters but when i load the file into corona it will work like it should?

I was thinking about making a pure LUA plugin like here – 

https://coronalabs.com/blog/2015/06/23/tutorial-building-a-pure-lua-plugin-for-corona/

But will i have to submit it so people can use it or can i give it out through like GitHub( And have my code kept secret )? How would that work?

Anyways. Thanks! Hope to hear from you soon!

Building a lua plugin will only give the plugin users the bytecode, not the actual source. They won’t be able to read your code as plaintext. See build.sh/build.bat in the repository linked from the blog post.

Well i built a the plugin and got a zip file. Don’t really understand what to do next.

https://github.com/coronalabs/plugins-template-library-lua#submitting-your-plugin

Building a lua plugin will only give the plugin users the bytecode, not the actual source. They won’t be able to read your code as plaintext. See build.sh/build.bat in the repository linked from the blog post.

Well i built a the plugin and got a zip file. Don’t really understand what to do next.

https://github.com/coronalabs/plugins-template-library-lua#submitting-your-plugin