I have a text file with some hexadecimal data inside.
I can open it in PHP, and output a full line on the webpage, but i want to parse this result into different lines
<?php
$file_handle = fopen("result.txt", "rb");
while (!feof($file_handle)) {
$line_of_text = fgets($file_handle);
$parts = explode('=', $line_of_text);
print $parts[0] . $parts[1]. "<BR>";
}
fclose($file_handle);
This reads the txt. file and it displays on the web page the following data
20d73ef83df97d721c14c4340f45fae151b4
but i need to parse this result to something like this displayed in text boxes
Key1 = 20D7 Message ciphered = 73EF83DF97D7 IV = 21C14C4340 Result key = F45FAE151B4
and so on until it finishes parsing last bytes, some lines have bigger length then others.