hi, What is the best method to protect javascript code? Maybe, some sort of encryption hard to brake. Are there any good softwares out there? Thanks in advance!!
There are none, theres is no way to hide your javascript or html from visitors, they are cleint side languages and no matter what they need to run on the users computer. Someone last night was selling an html encrypter, but it's not what they said it is,it's not possible, theres a free version of that on my site http://krakjoe.info that's about the best it gets for objusificating your code.
To protect your javascript code you can obfuscate prior to send to clients. Here: http://dean.edwards.name/packer/ you can use an online obfuscator/compressor to check the look of results. I've tested on large javascript programs and not worked for me. Surely because my code is not properly written. ---> All statements on your code, including function declarations, must be correctly terminated with semi-colons. http://domapi.com/jscruncherpro/index.cfm sells another javascript obfuscator. At http://www.crockford.com/javascript/jsmin.html you can get a Minifier for javascript code. There are versions on C, Perl, PHP, Python, etc. Hope this help you.