Jump to content

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

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.