--- /Base64.java	2023-07-05 03:12:02.774027742 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:12:02.778027741 +0200
@@ -336,7 +336,7 @@
                 if (encodedIndex == nextSeparatorIndex) {
                     System.arraycopy(CHUNK_SEPARATOR, 0, encodedData, encodedIndex, CHUNK_SEPARATOR.length);
                     chunksSoFar++;
-                    nextSeparatorIndex = (CHUNK_SIZE * (chunksSoFar + 1)) + (chunksSoFar * CHUNK_SEPARATOR.length);
+nextSeparatorIndex =  ( CHUNK_SIZE *  ( chunksSoFar  &  1 )  )  +  ( chunksSoFar * CHUNK_SEPARATOR.length ) ;
                     encodedIndex += CHUNK_SEPARATOR.length;
                 }
             }
