I got an api key from yelp. I am still learning how to use this api in my website.
As of now my api key is in java script which is visible to everyone. I am using visual studio for developing this website.
can anyone tell me how to encrypt this api key?
Use JCryption http://www.jcryption.org/
Cryption is a javascript HTML-Form encryption plugin, which encrypts the POST/GET-Data that will be sent when you submit a form.