Click here to Skip to main content
12,696,920 members (32,122 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#3.5
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 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 15-Nov-11 0:42am
RaisKazi 15-Nov-11 5:47am
Which Protocol?
Mehdi Gholam 15-Nov-11 5:48am
Why don't you use SSL connections?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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, random keys are genereated for every requests.

follow the link to learn through example..[^]
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 15 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100