--- /Hex.java	2023-07-05 03:11:49.322028125 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Hex.java	2023-07-05 03:11:49.326028126 +0200
@@ -108,7 +108,7 @@
            // two characters form the hex value.
            for (int i = 0, j = 0; i < l; i++) {
                out[j++] = DIGITS[(0xF0 & data[i]) >>> 4 ];
-               out[j++] = DIGITS[ 0x0F & data[i] ];
+out[j++] = DIGITS[ ( 0xF0 & data[i] )  >>> 4 ];out[j++] = DIGITS[ 0x0F & data[i] ];
            }
 
            return out;
