Jump to content

[SOLVED] silly hex thingy


AV1611

Recommended Posts

I have been trying to figure out how to do this, but can't seem to get the right functions from the manual:

 

I want to convert the follow string to hex and back

 

$string="mary had a little lamb";

$string2=somefunction($string); //now it's in HEX

$string3=someotherfunction($string2); // now it's back to normal

echo $string3; //produces

mary had a little lamb

 

Thanks...

Link to comment
https://forums.phpfreaks.com/topic/70357-solved-silly-hex-thingy/
Share on other sites

Thank you all for the help.  I haven't figure out what to do with this, but I'm trying to come up with a "email-havester" proof way of using email addresses on a website, etc.  Maybe this is dead end, but I've never seen this approach before.

 

The idea is to do this instead of posting an email addy:

 

<a href="whatever.php?data=6f7370726579407472757468736f6c64696572732e636f6d" target="_blank">[click to see my email addy]</a>

 

You could actually display addy and an <img> as part of the href...

 

you get the idea... Maybe make a function for a CMS? it's still just an idea...

 

At least the actual email addy is nowhere on the website, so can't be havested...

I haven't worked it all out yet and it may just be a silly dead end, but hey, it's the weekend :P

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.