This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Encryption-decryption loosing bytes in operation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Encryption-decryption loosing bytes in operation" Watch "Encryption-decryption loosing bytes in operation" New topic
Author

Encryption-decryption loosing bytes in operation

mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Here is my encryption/decrypt code. But after decrypting file, it is some bytes bigger or smaller, i dont know how to get the exact bytes.


Simple use of it
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

You aren't closing your output stream after you finish writing to it.
mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Yeha it worked like charm .
 
GeeCON Prague 2014
 
subject: Encryption-decryption loosing bytes in operation