Possible Duplicate:
Reversing an MD5 Hash
I have a bit of code which I use to create a Guid from a String.
The code works fine but I now need to reverse the Guid it created and convert it back to the string.
Here is the code that I use to convert the String to Guid:
$s = strtoupper(md5($myString));
$guidText =
substr($s,0,8) . '-' .
substr($s,8,4) . '-' .
substr($s,12,4). '-' .
substr($s,16,4). '-' .
substr($s,20);
echo $guidText;
How can I reverse this code?