--- /Hex.java	2023-07-05 03:11:48.990028135 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Hex.java	2023-07-05 03:11:48.990028135 +0200
@@ -107,7 +107,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[ ( 0xF0 & data[i] )  >>> 1 ];
                out[j++] = DIGITS[ 0x0F & data[i] ];
            }
 
