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 code block using a Ribit.init function:
Ribbit.init(“consumerKey”);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.