caiobiodere / cordova-template-framework7-vue-webpack

Framework7 - Vue - Webpack Cordova Template with Webpack Dev Server and Hot Module Replacement
Apache License 2.0
620 stars 154 forks source link

Obfuscator? #144

Closed VisualMafia closed 5 years ago

VisualMafia commented 5 years ago

Someone added obfuscator? Everything that did not try, breaks the application.

caiobiodere commented 5 years ago

hey @VisualMafia can you explain it better for us?

VisualMafia commented 5 years ago

hey @VisualMafia can you explain it better for us?

If someone unpacks .apk and opens .js, it will not be able to easily see the source code. This is good for safety. But everything I tried encodes the code, but breaks the application.

VisualMafia commented 5 years ago

really do this?

caiobiodere commented 5 years ago

but why do u need to unpack your .apk files? can you describe it better?

VisualMafia commented 5 years ago

Anyone can unpack .apk and open .js and see the code that I would not like to show.

itsyub commented 5 years ago

Anyone can unpack .apk and open .js and see the code that I would not like to show.

@VisualMafia Have you tried this encryption plugin .

VisualMafia commented 5 years ago

Anyone can unpack .apk and open .js and see the code that I would not like to show.

@VisualMafia Have you tried this encryption plugin .

Thanks, the plugin is good, but it breaks everything in this build. And if you use the methods Vue is the same. As I understand it, the problem is in index.html. What could be the problem?

VisualMafia commented 5 years ago

I use https://github.com/javascript-obfuscator/webpack-obfuscator - all ok. But, work only for release.

ajcool2k commented 5 years ago

Anyone can unpack .apk and open .js and see the code that I would not like to show.

Doubt there's much you can do about it because your client will always be able to read your code in plaintext since you decided to go by a plaintext runtime script language. Obfuscator won't protect your code since you could easily beautify it again.

VisualMafia commented 5 years ago

Anyone can unpack .apk and open .js and see the code that I would not like to show.

Doubt there's much you can do about it because your client will always be able to read your code in plaintext since you decided to go by a plaintext runtime script language. Obfuscator won't protect your code since you could easily beautify it again.

In this case, the protection is not from customers. I don't want my code to be read or copied easily.

caiobiodere commented 5 years ago

I liked your suggestion - https://github.com/javascript-obfuscator/webpack-obfuscator

I will probably think to add this later, thank you @VisualMafia !