File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes Encryption-decryption file problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Encryption-decryption file problem" Watch "Encryption-decryption file problem" New topic

Encryption-decryption file problem

mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Mostly this class is put to together from internet examples, k this class should do some doc, xls, and some picture encryption and then decryption, but problem is like when i decrypt file, in that process decryption misses bytes so file is smaller then original.

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46437
Why are you using sun. classes? They are not officially supported and might be altered or even withdrawn in future.

I don't think this is a "beginner's" topic, and I think it would sit better in the security forum, so I shall move it.
mandlar suurla
Ranch Hand

Joined: Jun 11, 2008
Posts: 67

Don't look the encrypt and decrypt with String parameters i dont use them. Main thing is the file encrypt and decrypt
I agree. Here's the link:
subject: Encryption-decryption file problem
It's not a secret anymore!