Exception of file encryption using c#

Discussion in 'C#' started by cat_sin, Dec 22, 2008.

  1. cat_sin

    cat_sin New Member

    Joined:
    Dec 22, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. ciaovista.com

    ciaovista.com New Member

    Joined:
    Dec 23, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.ciaovista.com
    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.
     
  3. cat_sin

    cat_sin New Member

    Joined:
    Dec 22, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    To ciaovista.com,
    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
     
  4. ciaovista.com

    ciaovista.com New Member

    Joined:
    Dec 23, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    http://www.ciaovista.com
    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.
     
  5. cat_sin

    cat_sin New Member

    Joined:
    Dec 22, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice