The processing of each string is: split => encrypt some fields => remove some fields => merge.
- First of all, this process of splitting and merging is extremely time-consuming. Can it be processed in batches or not split or other algorithms exist?
- Secondly, when the data is transmitted, it is
byte[], and it needs to be converted toStringduring processing, and it must be converted back tobyte[]after being merged(Of course, the encryption process also needs to be converted tobyte[]).Is there a way to splitbyte[]with specific characters likeString#split()?
Thanks.
StringBuilder?