When I compile my Vue.js application in the 'dist' folder, if I inspect the item in my browser, you can see the entire code of my application with the url or functions, which I don't want to see.
Is there any way to encrypt this code?
When I compile my Vue.js application in the 'dist' folder, if I inspect the item in my browser, you can see the entire code of my application with the url or functions, which I don't want to see.
Is there any way to encrypt this code?
I think you are talking about obfuscating your code.
In cryptography, encryption is the process of transforming information (referred to as plaintext) using an algorithm (called a cipher) to make it unreadable to anyone except those possessing special knowledge, usually referred to as a key. So encryption makes data “unreadable” whereas obfuscation makes it “difficult”.
There are several ways to obfuscate your code. Here's an example: https://blog.jscrambler.com/how-to-protect-your-vue-js-application-with-jscrambler/