How to connect to a third party website in classic asp using javascript for password encryption and yet not giving in the password.

Posted by Abbi on Stack Overflow See other posts from Stack Overflow or by Abbi
Published on 2010-10-13T18:23:05Z Indexed on 2010/12/23 17:54 UTC
Read the original article Hit count: 229

Filed under:
|
|
|

Hi

I have to make changes to classic asp website where once a button is clicked it autologins to a third party website with a intermediate page that warns that you are logging in to a third party website.

The thirdparty is providing us with a username and password and gave us an examle javascript to encode the password to send to them. Now where do I store the userid and password. I cannot execute the javascript on the serverside. It has to go to the client. If the asp page which has the encryption javascript goes to the client side then the source can be viewed and the username and password is given out.

Is there a way that I can have hidden asp page whose only job is to encrypt the password and create a new url and auto redirect it to that new url.

So when the user clicks ok on the intermediate warning page I redirect it to this hidden asp page which does the encryption and a creates a url for get method and redirects to that page.

I am a novice as far as java script and classic asp is concerned. Any ideas/ advice will be appreciated.

Thanks,

--Abbi

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET