简体   繁体   中英

Providing library to users without source code?

I have created a library that can do some work. I want users to use it, but due to certain reasons (having some secret recipes in it), I don't want users of library to see the source code. It is possible ? One option is providing output via json , but that is not feasible due to infrastructure requirement. (this question is after my understanding that .class files can be decompiled to java code.

Technically, you can make it harder (obfuscation etc.) but AFAIK you cannot prevent it.

Legally: make clear under what license you distribute your library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM