Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.5
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 14-Nov-11 23:42pm
Comments
RaisKazi at 15-Nov-11 5:47am
   
Which Protocol?
Mehdi Gholam at 15-Nov-11 5:48am
   
Why don't you use SSL connections?

1 solution

Rate this: bad
good
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 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[^]
  Permalink  
Comments
youssef_123 at 15-Nov-11 6:39am
   
ok man anyhow but how can i use SSL because also i have no idea
youssef_123 at 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
0 OriginalGriff 468
1 Sergey Alexandrovich Kryukov 305
2 PhilLenoir 115
3 RajeeshMenoth 110
4 Uma Shankar Patel 80
0 Sergey Alexandrovich Kryukov 6,557
1 OriginalGriff 5,966
2 CPallini 2,473
3 Richard MacCutchan 1,687
4 Abhinav S 1,540


Advertise | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 15 Nov 2011
Copyright © CodeProject, 1999-2014
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