--- /Base64.java	2023-07-05 03:13:16.654025633 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:13:16.662025633 +0200
@@ -575,8 +575,8 @@
         bitlen = ((bitlen + 7) >> 3) << 3;
         byte[] bigBytes = bigInt.toByteArray();
 
-        if(((bigInt.bitLength() % 8) != 0) &&
-            (((bigInt.bitLength() / 8) + 1) == (bitlen / 8))) {
+if (  (  ( bigInt.bitLength (  )  % 10 )  != 0 )  && (  (  ( bigInt.bitLength (  )  / 10 )  + 1 )  ==  ( bitlen / 10 )  )  )  {
+ 
             return bigBytes;
         }
 
