How to convert hex to string or text in php
I want to encrypt a message to string(text) format but I don't know the function which can convert Hex to String: here is my page : <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> </head> <body> <?php // on commence par définir la fonction Cryptage que l'on utilisera ensuite function Cryptage($TEXT, $Clef) { $LClef = strlen($Clef); $LTEXT = strlen($TEXT); if ($LClef < $LTEXT) { $Clef = str_pad($Clef, $LTEXT, $Clef, STR_PAD_RIGHT); } elseif ($LClef > $LTEXT) { $diff = $LClef - $LTEXT; $_Clef = substr($Clef, 0, -$diff); } return bin2hex($TEXT ^