Jump to content

Recommended Posts

Hi,

As the subject says, I do not want to show my .js files to anyone. I put them in different files and I think I should encode them. I found some encoders which I will give a try to them and it seems the most powerful way is to encode with more then one encoders. But even this is not enough as all the encoded codes can be cracked with enough time and dedication!

So what do you do to protect your js codes (or your intellectual property should I say)? What encoders do you use? Or what kind of things you do or you just give up, and put them as they are?
Link to comment
https://forums.phpfreaks.com/topic/16996-hiding-your-js-code/
Share on other sites

That was a great discussion!

I was just curious if someone were able to hide it source code (well javascript codes worth to hide as they are just like php or asp or jsp.) Most of the discussion was about right click disabling "newbies" I was intrested If I yould be able to hide my ajax codes. I was looking forward to hide which ul I'm calling for ajax (for security purposes) but seems that even if it's possible, someone dedicated enough can track it via proxies or other ways (packet sniffing was it?)

Bah I think I give up too easy and too fast. Anyway thanks for the link.
Link to comment
https://forums.phpfreaks.com/topic/16996-hiding-your-js-code/#findComment-71786
Share on other sites

I wouldnt even try to hide js code using ajax since any smart person would have firebug installed as an extension in firefox and see everything that goes on in the browser :P

as for right click blocking, ... view->page source or file->save as

I mean how important exactly is your javascript? ::)

your best bet is just going with obfuscation because your script probably wouldnt be worth the time to decrypt it. :)
Link to comment
https://forums.phpfreaks.com/topic/16996-hiding-your-js-code/#findComment-72076
Share on other sites

Well I'm thinking a little about encrypting my data and send by that way with ajax. The problem is with javascript as the source code can be easily seen there is no need to encrypt it with a way. As a malicious person can fin my encryption alogrithm easily. But If would be able to hide it. Than It wpuld be ok.

I know there are lots of ways to coping anything that is posted on the web. And thats why you put them to the internet, to publish them! But no one can see my php code nor jsp neither asp codes. As they are parsed or compiled on the server side, it's hidden to me whatever I do. So I can use my encryption algortihm there and then everything would fine.

I have read lots of articles telling hat ajax in insecure. As it's mostly a client-side scripting and every client can be tricked easily. Even though I have no intension using ajax while entererin or updateing something to db just select commands, I also want to secure them too. Why should I let someone to see any info from my database? I have also looked what was saja doing for security but they just meant, we are trying to prevent functions being called by unauthorized people but we are not protecting your data! It was mostly doing them via session management. Anyone who can trick the sessions is able to trick saja too then.

My intension was to send data and also a little serial number created via data. If serial is ok after I manipulate the data, then the ajax request is ok! But as I can only create the serial via javascript it's completly a waste of time.

As I read more and more I see that js can only be obfuscated, which can be decoded with enough dedication. And I will change my data encryption idea to something else and will use something with session managements and other things I think.
Link to comment
https://forums.phpfreaks.com/topic/16996-hiding-your-js-code/#findComment-72359
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.