S
S
shane892015-09-25 15:00:42
JavaScript
shane89, 2015-09-25 15:00:42

How to hide code?

There is a project. There is a lot of javascript code. How can it be painted over, hidden. To not be able to take it for themselves.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2015-09-25
@Taraflex

No way, take out the logic on the server side.
Any js minifier will be enough to weed out the majority of those who want to understand your code. And who can figure it out, he will write his bike faster.

D
Dmitry Kovalsky, 2015-09-25
@dmitryKovalskiy

If the code is client - no way. Only obfuscation and minification.

A
Alexey Ukolov, 2015-09-25
@alexey-m-ukolov

What are the ways to hide (from plagiarism) JS on the site?

S
sanex3339, 2015-09-25
@sanex3339

You take the code, obfuscate it, convert it to PNG https://github.com/felixmaier/JS2PNG , convert PNG to base64. The code that decodes the base64 string with the image back into js code and appends it to the script tag (appendim script tag for 1 ms, then delete), obfuscate 1 time with some kind of js uglify, and then the 2nd time with this service javascript2img.com/ .
Something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question