Exception of file encryption using c#

cat_sin's Avatar, Join Date: Dec 2008
Newbie Member
Hi,
Currently i am doing a project related to file encryption using c#. I new to the c# programming actually. I used microsoft visual c# express 2008. I had combine some of the code from internet reference, but i am facing a problem where program highlight "cs.Close();" and show
IndexOutOfRangeException was unhandled when decrypt button is clicked. The file decryption is unsuccessful due to this exception i think. Is there anybody know how to solve for this problem?

If I am not disturbing,please guide. Thanks a lot!

Regards,
sf
0
ciaovista.com's Avatar, Join Date: Dec 2008
Newbie Member
Obviously I can't help with your code as I do not have it; however what I can do is give you code that does work, as I use it in my apps. Let me know if you want the code. I will put it on my website where you can download it, or I can just post pieces of it here.
0
cat_sin's Avatar, Join Date: Dec 2008
Newbie Member
To ciaovista.com,
Quote:
Originally Posted by ciaovista.com View Post
Obviously I can't help with your code as I do not have it; however what I can do is give you code that does work, as I use it in my apps. Let me know if you want the code. I will put it on my website where you can download it, or I can just post pieces of it here.
I want the code that u works well with. So that, i can take it as a reference.

Thanks for your help. I really appreciate it.

Regards,
cat_sin
0
ciaovista.com's Avatar, Join Date: Dec 2008
Newbie Member
Sorry about the delay due to the holidays. To download the demo and the source code, go to ciaovista.com and at the bottom of the webpage you will find the links to EncryptDecryptApp. Let me know how it goes.
0
cat_sin's Avatar, Join Date: Dec 2008
Newbie Member
To ciaovista.com,

Thank you for your code. It seems great and it is exactly what i want. It helps me a lot in solving my problem. Thanks a lot!

Regards,
cat_sin