开发者

javascript hide code for secret keys etc

开发者 https://www.devze.com 2022-12-22 15:14 出处:网络
I am using the Ribbit javascript api and trying to figure out how not to show the secrety key and all those application settings which are set in a 开发者_如何学Pythoncode block using a Ribit.init fun

I am using the Ribbit javascript api and trying to figure out how not to show the secrety key and all those application settings which are set in a 开发者_如何学Pythoncode block using a Ribit.init function:

Ribbit.init("consumerKey");


You can't. All JS is public viewable.

Unless you want to base64 encode the key on the server side and modify the init function to decode it first thing. It's easily reversible, but it will obfuscate it a bit.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号