Thank you for the tips. I am also trying to hide some of my Javascript because it is not about the code itself but the idea of how I use the code. The idea of making something that not everyone can think of doing is the reason why I want to protect the code.
@JavierCarrion
5 жыл бұрын
What a great solution for api Keys 🔑. But I see the security concerns.
@scripter-gg5wq
3 жыл бұрын
Thx it helped a lot. I only saw the miniature and I got the very easy solution :)
@AbsoulteBaller
4 жыл бұрын
thank you for sharing! great one!.
@DavidHust
4 жыл бұрын
Great video! Thanks.
@dream_catcher9797
3 жыл бұрын
Such a great video...please tell me How to obfuscate the dynamic variable?
@AllThingsJavaScript
3 жыл бұрын
Maybe I'm misunderstanding your question, but just include is a the code that you obfuscate.
@gregoiremaria1078
4 жыл бұрын
Hi, can you encrypt with password ? Or everyone can decrypt the code with an inverse Javascript obfuscator tool ?
@AllThingsJavaScript
4 жыл бұрын
This just makes it difficult. I don't know of a way to encrypt with a password.
@RogerThat902
5 жыл бұрын
Great example. Question, how would you manage to make changes to the code if say you wanted to make a small update?
@AllThingsJavaScript
5 жыл бұрын
So what I do is keep a copy of the original code in my working file. That is where I work and make changes and do testing. As a part of the process before release or delivery I obfuscate the code.
@RogerThat902
5 жыл бұрын
@@AllThingsJavaScript Great. Thank you for taking the time to respond. I really enjoy your content.
@user-mm5ud1ym7p
Жыл бұрын
ty
@zamore2172
4 жыл бұрын
Very nice!
@Toni-nw1dk
3 жыл бұрын
Thank you very much
@coolbreeze6751
3 жыл бұрын
Thanks My buddy and i are trying to figure out how drudgereport.com hides ads inside of links. When u check his source code theres no mention of this nefarious code. I had a theory it was hidden like u described and it seems im right. Much obliged
@humbertocontreras
4 жыл бұрын
Is performance affected using this method?
@AllThingsJavaScript
4 жыл бұрын
Not that I am aware of.
@Amilakasun1
3 жыл бұрын
Yup hugely.
@andreasdev16
5 жыл бұрын
Webpack could be used as well. Bundled js file is almost impossible to read.
@AllThingsJavaScript
5 жыл бұрын
Thanks for the additional suggestion. Though much easier to format and read after the fact, it can be difficult to decipher.
@sangwaemmanuel6936
4 жыл бұрын
If one has ajax posting to backend would there be any other better way than this, since this is as you said not a security answer?
@AllThingsJavaScript
4 жыл бұрын
For JavaScript code on the client side, this is the technique commonly used. I'm not aware of another approach. Now if you explore the obfuscation sites, there are some that obfuscate so well, it would almost be impossible to decipher the code.
@kondicedric7635
4 жыл бұрын
Thanks
@xyz-ey7ul
5 жыл бұрын
is building spa eCommerce site safe, since all the js is rendered on the client side?
@AllThingsJavaScript
5 жыл бұрын
If it is an ecommerce site, there would be things handled on the back end that you would secure. The front-end SPA would handle the look and feel.
@maximussu7609
4 жыл бұрын
Hi,Can this the encoded code be decoded?. If it can be decoded, then its nit secure
@AllThingsJavaScript
4 жыл бұрын
Right, this is not a security feature.
@ntntntnt569
3 жыл бұрын
Yeahhh nice man at least right now I can public my webpage with less obssession about someone will press f12 and laugh at my bunch of garbage.
@alsharifnami
5 жыл бұрын
Can we hide css also or not thanks
@AllThingsJavaScript
5 жыл бұрын
Good question! I've never had a need to do it, but here is a site that says they obfuscate CSS: cssobfuscator.com/
@marcodev3375
4 жыл бұрын
How to convert javascript to web assembly?
@AllThingsJavaScript
4 жыл бұрын
Maybe that should be a topic
@alleefattah8045
4 жыл бұрын
The title should be "Notes and Facts about Securing/hide JavaScript Code: With Example".
@abed-almajeedmansour9015
4 жыл бұрын
thanks :)
@rk-uh4os
3 жыл бұрын
6:18 that was mouse
@AeroPR
3 жыл бұрын
Security by obscurity 👎👎
@manishbasnet5230
4 жыл бұрын
Uui
@07rohitpd
5 жыл бұрын
You should change the title, it's misleading
@AllThingsJavaScript
5 жыл бұрын
Not sure how it is misleading. Maybe you could expound.
@07rohitpd
5 жыл бұрын
Bcz it says about obfuscating the code and not hiding
@AllThingsJavaScript
5 жыл бұрын
@@07rohitpd I get it. However, if I used obfuscating code in the title, most would not know what that means.
Пікірлер: 42