Jump to content

How to send sensitive info from one page to another


mukunthan

Recommended Posts

How to send sensitive info from one page to another using hidden form field without the field getting displayed in the HTML viewsource?Is it possible? I know we can encrypt the value but i also dont want the field name to be visible?

eg.,

<form name="frm" action="1.php">

<input type="hidden" name="user_id" value="100">

<input type="text" name="product" >

<input type="text" name="qty" >

<input type="submit" name="Submit" >

</form>

The user_id hidden should not be visible even if a view the HTML Source

This val is used to link 2 websites.After you login to 1site, important info are passed from  the 1st site to the 2nd.Only if these info are present the 2nd site gives access to all the pages. otherwise the session controlled pages will be missing

What I have done before in a nutshell:

Both databases (on each server) have a simple salt table with id and value and the tables are identical.

Before you send data from one site to the other, encrypt it with a randomly selected salt.  Send the id of the salt along with the encrypted data and decrypt it on the other end by retrieving the salt value.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.