Click here to Skip to main content
13,257,276 members (53,825 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
hi frnds.... i want to encrypt the date and decrypt the date using c# asp.net....
pls anyone guide me .....
Posted 2-Feb-13 1:59am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

A date may be a little small for encryption, but...there is an example here: Encrypt and Decrypt Data with C#[^]

It depend what you want to use the date for - it may be more sensible to use a hashing algorithm like SHA instead, because they cannot be reversed.
  Permalink  
Comments
koilkannan 2-Feb-13 7:31am
   
thank you.... its really useful
OriginalGriff 2-Feb-13 7:49am
   
You're welcome!
Abhishek Pant 2-Feb-13 8:06am
   
I dont know why he downvoted.+5

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 |
Web02 | 2.8.171114.1 | Last Updated 2 Feb 2013
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