Search:

Type: Posts; User: cjbon

Search: Search took 0.08 seconds.

  1. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Thanks buddy, see you around!
  2. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Hi Voodoo,

    I have solved it!

    I was thinking about the CipherInputStream and the salting/key that it might be left out during the switching.
    So instead of encrypting the top 100000 bytes, I...
  3. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Hi Voodoo master,

    These are cool stuff and a little too much for me to digest.. so do you think it is possible to get it working?
  4. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Now I realized another new thing, when I decrypt I do not have to decrypt exactly 100000 bytes, the CipherInputStream seems to have some mechanism to figure it out the encrypted data and decrypt...
  5. Re: Encryption problem with CipherInputStream/CipherOutputStream

    I can't shred because the decrypted one is 4 bytes less not more :)

    I just did a log of the buffer read:
    07-16 11:43:05.640: I/enctop(4914): 100000 -> first read, the encrypted part
    07-16...
  6. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Yes, I also suspected this. That is why I can encrypt/decrypt correctly if I do not do partial encryption or if the file is smaller than 100000 bytes meaning it always encrypt fully. So this will...
  7. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Very interesting, I tried adding 3 more qwerty word so:
    qwerty.txt 616338 bytes
    qwerty.enc 616362 bytes
    qwerty.ret 616334 bytes

    So it seems consistent, qwerty.ret is always 4 bytes short of the...
  8. Re: Encryption problem with CipherInputStream/CipherOutputStream

    If the encryption/decryption of first 10000 bytes fail, then I will never being able to decrypt it back. I tried to output the 10000 bytes to another file and decrypt qwerty.enc first 100000 bytes to...
  9. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Hi Voodoo, thanks for being the first one trying to help :)

    I tried your code, it is exactly the same. Also, it is the full code already. I have been using this for a long time to encrypt/decrypt...
  10. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Why is this call spoon feeding? I coded it myself but couldn't find an answer, I posted in Stackoverflow and Google group no one knew the answer so I guess it is not a simple question?
  11. Re: Encryption problem with CipherInputStream/CipherOutputStream

    Any idea? I am about to give up...
  12. Encryption problem with CipherInputStream/CipherOutputStream

    Hi I have the following code I tested to encrypt/decrypt file and all is good. It works correctly for full file encryption and now I want to test partial encryption of 100000 bytes. I tried read the...
Results 1 to 12 of 12