Click here to Skip to main content
11,789,710 members (64,138 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP.NET
hi frnds.... i want to encrypt the date and decrypt the date using c#
pls anyone guide me .....
Posted 2-Feb-13 0:59am
Rate this: bad
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.
koilkannan at 2-Feb-13 7:31am
thank you.... its really useful
OriginalGriff at 2-Feb-13 7:49am
You're welcome!
Abhishek Pant at 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
0 OriginalGriff 999
1 Maciej Los 765
2 KrunalRohit 686
3 CPallini 606
4 Richard MacCutchan 430

Advertise | Privacy | Mobile
Web01 | 2.8.1509028.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2015
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