do you need to de-crypt it? if not, you can use:
<?
$url=md5($url);
?>
then when you want to verify against it .. you can use:
<?
if(md5($new_url) == $url)
{
echo "successfully matched";
}
else
{
echo "failed";
}
?>
i'm thinking you might need to decrypt it though, ... i don't know how.