split « byte « Java Data Type Q&A





1. Split Java String in chunks of 1024 bytes    stackoverflow.com

What's an efficient way of splitting a String into chunks of 1024 bytes in java? If there is more than one chunk then the header(fixed size string) needs to be repeated in ...

2. how to split byte[] without loops?    forums.oracle.com

3. Split a string into mutiple byte[], encrypt, and then combine    forums.oracle.com

No. Don't go down this route. The fact that you are trying to encrypt a long message with an asymmetric cipher is your first clue that the design is bad. Symmetric crypto is orders of magnitude faster. So, what you want to do is the following: Generate symmetric key Encrypt message with symmetric key Generate asymmetric (public-private) keys Encrypt symmetric key ...