code: @Deprecated
      public static String encodeHex(byte[] data, char delimiter) {
          // the result
          StringBuilder result = new StringBuilder();
  
          short val = 0;
  
          // encode each byte into a hex dump
          for (int i = 0; i < data.length; i++) {
              val = decodeUnsigned(data[i]);
              result.append(padLeading(Integer.toHexString((int) val), 2));
              result.append(delimiter);
          }
  
          // return encoded text
          return result.toString();
      }
docs: Encodes a byte array into a hex string (hex dump).
  @deprecated Please see class HexUtil