Javascript hide code for private keys, etc.

I use the javascript api Ribbit and try to figure out how not to show the secrety key and all those application settings that are set in the code block using the Ribit.init function:

Ribbit.init ("consumerKey");

+3
source share
1 answer

You can not. All JS are publicly available.

If you do not want base64 to encode the key on the server side and change the init function to decode it first. It is easily reversible, but it confuses it a little.

+4
source

Source: https://habr.com/ru/post/1735708/


All Articles