Encrypting and Decrypting

Discussion in 'Questions (Windows Mobile)' started by XerVision, Jun 16, 2007.

  1. XerVision

    XerVision Member Licensed User

    I encrypted two files in my program and was able to embed them into one file. I then clodes my program and reopened it. I retrieved the embedded files and then decryoted them. This worked well. However, I was not able to reencrypt the decrypted files due to an overbounds error. (Note I am using the encrytion code that Was placed on the forum a few weeks ago.)

    This is the error that I am getting:
    c = reader.ReadBytes(data(),buff_size)
    Error Description: and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
    At first, I was thinking that the file was too large. But I do not believe that is the case now.
  2. Erel

    Erel Administrator Staff Member Licensed User

    What is the difference between the first encryption and the second encryption?
    If you post some of your code we will be able to further help you.
  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