You could use this base64 library to check an encrypted password: http://www.webtoolkit.info/javascript-base64.html
Any login done solely with client side code is going to be inherently insecure. If that's part of your requirement, then you'll just have to work around it. andy -----Original Message----- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Leandro Ardissone Sent: Tuesday, December 16, 2008 5:00 PM To: jQuery (English) Subject: [jQuery] [OT] Client side web application with jQuery Hi, I'm need to implement a website (intranet) that runs everything on the client side communicating to the server via RESTful requests. I'm using jQuery but my big issue at the moment is how to manage the login. I'm not sure which is the best method to login the user securely from javascript. We're using REST for the site requests and HTTP Auth for the authentication at the moment, but I don't want to use that ugly browser login. I want to manage everything from the client side using javascript. But since javascript is viewable by the users I think that probably could be dangerous. What are your suggestions? Is there a jQuery plugin for http-Auth? Or maybe I should use other method? Thanks, Leandro