Data Encryption and Decryption

Reply

Join Date: Jan 2008
Posts: 39
Reputation: btech_Saurabh is an unknown quantity at this point 
Solved Threads: 2
btech_Saurabh's Avatar
btech_Saurabh btech_Saurabh is offline Offline
Light Poster

Data Encryption and Decryption

 
0
  #1
Jan 7th, 2008
Hi Developers.......

Can anybody help me......I have an array and i want to enrypt that array and save that encrypted data into a file .......how can i do this...... i don't know ....how to do Encrytion in C#

Every Comment will be welcome....
Thanks......
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 172
Reputation: Jugortha is an unknown quantity at this point 
Solved Threads: 16
Jugortha Jugortha is offline Offline
Junior Poster

Re: Data Encryption and Decryption

 
-1
  #2
Jan 7th, 2008
There are for algorithms of encryption/decryption with in the .Net framework

DES algorithm, RC2 algorithm, Rijindael algorithm and TripleDES algorithm they are represented as classes

First step is to include directive of cryptography
witch is System.Security.Cryptography

Second step is to create your own key, to do that
string password = // you can put here your password
UnicodeEncoding objectEncoding= new UnicodeEncoding();
byte[] key = objectEncoding.GetBytes(password);

third step is to create a stream where the encipted data will be putted

FileStream CryptedFile=new FileStream(cryptFile, FileMode.Create);

encrypt the contents

RijndaelManaged Crpt= new RijndaelManaged();
CryptoStream Encryptor= new CryptoStream(cryptedFile, Crpt.CreateEncryptor(key, key), CryptoStreamMode.Write);

And the the data encryption is done according to the Rajindael algorythm
u can use another algorithms like the DES or u can develop your own encryption algorithm
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 39
Reputation: btech_Saurabh is an unknown quantity at this point 
Solved Threads: 2
btech_Saurabh's Avatar
btech_Saurabh btech_Saurabh is offline Offline
Light Poster

Re: Data Encryption and Decryption

 
0
  #3
Jan 7th, 2008
Okay.....i'll try it.......thanx Jugortha......
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: aungzy24 is an unknown quantity at this point 
Solved Threads: 0
aungzy24 aungzy24 is offline Offline
Newbie Poster

Re: Data Encryption and Decryption

 
0
  #4
Jul 24th, 2009
I'm trying to write the data encryption and decryption by using MISTY Algorithm with Java Language. So I need to help all of you. Can you help me for my coding? Please help me.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3649 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC