Madz Posted May 25, 2003 Posted May 25, 2003 Hello I want to use Cryptography in my software , for example my application is saving passwords to database and i want to decrypt that value before saving it to database how can i acomplish this task. Quote The one and only Dr. Madz eee-m@il
*Experts* Bucky Posted May 25, 2003 *Experts* Posted May 25, 2003 The System.Security.Cryptography namespace provides classes for encrytion and hashing. Read all about it [mshelp=ms-help://MS.VSCC/MS.MSDNVS/Cpqstart/html/cpsmpnetsamples-howtocryptography.htm]here[/mshelp]. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Madz Posted May 26, 2003 Author Posted May 26, 2003 Thanks, last night i was trying to encrypt one file this is the code but i was unable to decrypt it. public static void Main(string[] args) { string sFile = "madz.txt"; FileStream fso = File.Create(sFile); RijndaelManaged rm = new RijndaelManaged(); CryptoStream cs = new CryptoStream ( fso, rm.CreateEncryptor(), CryptoStreamMode.Write); StreamWriter swo = new StreamWriter(cs); swo.WriteLine("I Love you my Sweet Heart !"); swo.Close(); cs.Close(); fso.Close(); } Quote The one and only Dr. Madz eee-m@il
*Experts* Bucky Posted May 26, 2003 *Experts* Posted May 26, 2003 Can you show the code you used to attempt to decrypt it? Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.