But won't web developer or similar show you any generated javascript?
A technique for hiding your JavaScript code
11–20 of 36 posts
Re: A technique for hiding your JavaScript code
#12I can't help but feel saddened that we learned how to code using View Source (indeed, it's a big factor in the web's success) and now we're trying to prevent others doing the same. Also, this seems like a surprisingly naive generalisation to me: "... a first measurement for preventing evil business guys from stealing your code – developers who can figure the code out are (mostly) kind enough not to steal it."
Re: A technique for hiding your JavaScript code
#13This is a really good Idea! I will implement this in my site, where I blocked the right mouse-klick so nobody can steal my images!!11
Re: A technique for hiding your JavaScript code
#14Re: A technique for hiding your JavaScript code
#15I can't help but feel saddened that we learned how to code using View Source (indeed, it's a big factor in the web's success) and now we're trying to prevent others doing the same. Also, this seems like a surprisingly naive generalisation to me: "... a first measurement for preventing evil business guys from stealing your code – developers who can figure the code out are (mostly) kind enough not to steal it."
"Developer tools" is the new View Source. Browsers should really just redirect View Source to the live DOM view of their developer tools, that's what most people want from it.
Re: A technique for hiding your JavaScript code
#16Re: A technique for hiding your JavaScript code
#17Bonus points for not just creating an image, but hiding the code steganographically in an existing image (ie only using the LSB of each pixel to hide code)!
function foo() {
/* ...characters for image data... /
bar();
/ ...more image data... */
The asterisks are not showing up but you get the idea. It checks out with the comments part of the javascript spec as well:
http://ecma-international.org/ecma-262/5.1/#sec-7.4
...as the text inside the comment can be any unicode code unit except for an asterisk (For source Character rules see http://ecma-international.org/ecma-262/5.1/#sec-6).
Re: A technique for hiding your JavaScript code
#18Re: A technique for hiding your JavaScript code
#19Re: A technique for hiding your JavaScript code
#20Bonus points for not just creating an image, but hiding the code steganographically in an existing image (ie only using the LSB of each pixel to hide code)!
This might be quite effective in preventing people trying to reveal your code as part of their job. You could use some sort of obscene image to hide your code in.