+ 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.
5 Answers
+ 6
You can put this information in server-side, using JavaScript with Node.js and Express
Talk me if you need help
+ 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!
+ 3
Here is a great article about it:
http://techslides.com/client-side-javascript-to-node-js
+ 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.
0
const InvBoy = me; How can I convert my Js to Node.js????