| 1 | <?php |
||
| 4 | trait RandomStringGeneratorTrait |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * Converts binary data to hexadecimal of given length |
||
| 8 | * |
||
| 9 | * @param string $binaryData The binary data to convert to hex. |
||
| 10 | * @param int $length The length of the string to return. |
||
| 11 | * |
||
| 12 | * @throws \RuntimeException Throws an exception when multibyte support is not enabled |
||
| 13 | * |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public function binToHex($binaryData, $length) |
||
| 20 | } |
||
| 21 |