I have a requirement in which an Editor has to set some constant values in a JavaScript file placed on a Page, and those values should be encrypted to some extent.
In other words, it is required the values set for the JavaScript constants should not be visible in the Page's source in a human readable format.
I suggested to the client they encrypt the JavaScript code with a JavaScript Obfuscator first and then publish the encrypted code along with the Page.
I also suggested using a "Custom URL" to open this URL within the Tridion CME but they have not agreed on this solution.
Could somebody suggest me some other approaches to implement encryption of JavaScript constants added to Pages?