<!-- HILSTER oser 3.3.0 -->
**OSER 3.3.0** · [HTML](../util.html) · [Complete PDF manual](../_downloads/oser-3.3.0.pdf)

# Utilities

### oser.util.to_hex(data: [bytes](https://docs.python.org/3.7/library/stdtypes.html#bytes)) → [str](https://docs.python.org/3.7/library/stdtypes.html#str)

Return a string converted to hex with indexes above.

* **Parameters:**
  **data** ([*str*](https://docs.python.org/3.7/library/stdtypes.html#str)) – the data to be encoded to a hexadecimal format.
