How to do the encryption & decryption for text file

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2007
Posts: 95
Reputation: zawpai is an unknown quantity at this point 
Solved Threads: 0
zawpai zawpai is offline Offline
Junior Poster in Training

How to do the encryption & decryption for text file

 
0
  #1
Nov 4th, 2008
Hi,


Could anyone pls give me some suggestions how to do the encryption and decryption for text?

Best reagards,
zawpai
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,134
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: How to do the encryption & decryption for text file

 
0
  #2
Nov 5th, 2008
what sort of the encryption and decryption you are trying to achieve and for what purpose.
simple encryption and decryption can be done by using some string functions.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 95
Reputation: zawpai is an unknown quantity at this point 
Solved Threads: 0
zawpai zawpai is offline Offline
Junior Poster in Training

Re: How to do the encryption & decryption for text file

 
0
  #3
Nov 5th, 2008
Hi debasisdas,

Actually, I don't know how may ways it can be done.
In my project, I have a ".txt" file that is including data. So, I don't want the user to see or view them. That's why I would like to encryption. Some parts of project will need to read them again and then I need to do the decryption.
Can you show me which way will be better and secure?

Best regards,
zawpai
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 36
Reputation: Teropod is an unknown quantity at this point 
Solved Threads: 6
Teropod Teropod is offline Offline
Light Poster

Re: How to do the encryption & decryption for text file

 
0
  #4
Nov 10th, 2008
You can write ascii codes instead of strings later you can eazy convert them to data you need, or use any other function that will mask your input in file and use same function to get data back or you can transfer number into different numbering system and do it on different level.

For example.

a is 61 in decimal you can convert it to binary 00111101 now you can mask it to add few bits in front word and after word for example i will add 1010(00111101)0101 now if you write that to file in decimal system you will get 41941.

Hope these helps.
Reply With Quote Quick reply to this message  
Reply

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



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC