I'm in need of connecting to a secure url and passing encrypted string of username and password via pure javascript.

So, to be clear: I have an html5 app that is being ported to iphone via phonegap. The app needs to connect secure url (rss feed that am pulling). I have the username and password encrypted all ready. I just need to connected to it and pass along the parameters to gain access. What is the best way to this?

Thank you