This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 18541
    
    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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encryption-decryption loosing bytes in operation