How can I Encrypt my Important Javascript Files? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can I Encrypt my Important Javascript Files?

Advanced Thanks. I have many Js files in project, In this files, many files is very Important. But the browser makes everything Human readable by Source Location. I need Encrypt files from Human readable or Hide from them, not from Browser. Thank you.

9th Apr 2019, 9:57 PM
Shahidul Islam
Shahidul Islam - avatar
5 Answers
+ 6
You can put this information in server-side, using JavaScript with Node.js and Express Talk me if you need help
9th Apr 2019, 11:30 PM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
+ 4
If the browser can read it then so can a human. Also, a human can always pretend to be a browser, you have no way of knowing. Never transmit important data like passwords to the client!
9th Apr 2019, 10:14 PM
Schindlabua
Schindlabua - avatar
+ 3
10th Apr 2019, 4:13 AM
Zeke Williams
Zeke Williams - avatar
+ 1
Javascript works at client side and should be human readable cause you let the browser do the things. But if you want some privacy or security you should use server side scripts like PHP .Net etc. For example if you want to make an application which connects to a database you should be handling the database connections by PHP and do the other things by your JavaScript. so instead of using HTML you can use PHP or .net an all your JavaScript codes in these files.
20th Apr 2019, 2:02 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
0
const InvBoy = me; How can I convert my Js to Node.js????
10th Apr 2019, 2:12 AM
Shahidul Islam
Shahidul Islam - avatar