File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes HUGE string to encript in AES Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "HUGE string to encript in AES" Watch "HUGE string to encript in AES" New topic
Author

HUGE string to encript in AES

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi guys,

I'm trying to encript files using AES (mind that I'm very new to the encription world as well as to i/o).

The program suppose to be simple:
1. get the plain file.
2. encript it (AES 128)
3. output the cypher file.

assuming the file is 10M byte (all strings, = plain.txt).

my question is:
1. should I take the file as one HUGE string and send it to the encription
or should I read the file by chunks - encript it and send it to the cypher file.

the first option, while sounds logic, looks inefficent to me.

can anyone comment or provide an alternative

Thansk
Peter
 
wood burning stoves
 
subject: HUGE string to encript in AES
 
Similar Threads
Cypher Dis!
RC4 cypher in Java, decypher in JavaScript.
RC4 cypher in Java, decypher in JavaScript.