Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dears,
in WEB APPLICATION if i have two functions first is Encrypt and the second is Decrypt such that function Encryp used to encryp the data and function Decrypt used to decrypt the data but the question is: How can i encryp the data before it pass through the network and how can i decrypt it when it receaved to the user.in other way i want to encryp data --> send it to user through internet and decrypt it before viewing it to the user this is to allow for the data to pass encrypted in the network.

Best regards.
Posted
Comments
RaisKazi 15-Nov-11 5:47am    
Which Protocol?
Mehdi Gholam 15-Nov-11 5:48am    
Why don't you use SSL connections?

1 solution

if you want to encrypt server output, there is not mechanism to do it.. just you have to use SSL i.e. https:// protocol.

but if you want to encrypt user inputs you can do it. using RAS or MD5 hashings.. you can encrypt in client browser through javascrypt and decrypt in server using c#(or vb.net), random keys are genereated for every requests.

follow the link to learn through example..


http://sites.google.com/site/santo01org/encryption-of-password-in-asp-net-login-page-through-javascript[^]
 
Share this answer
 
Comments
youssef_123 15-Nov-11 6:39am    
ok man anyhow but how can i use SSL because also i have no idea
youssef_123 15-Nov-11 6:43am    
ok man i have to use SSL can u help me because also i have no idea and i dont want to encrypt the user and password i want to encrypt the whole data or to safe the whole data

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900