JustinK101 Posted June 24, 2007 Share Posted June 24, 2007 Hello, I need a simple way to hide/rearrange the contents of a string, and then have the ability to return the contents of the string back. Basically what I need is encryption, but I don't want to use a key. I was thinking it would be nice to simply convert the string to binary. Then I could convert the binary back to a string. What is crucial is that I need to do return the same exact string that was put into the function. Thanks. Quote Link to comment Share on other sites More sharing options...
mkoga Posted June 24, 2007 Share Posted June 24, 2007 You could try: $str = 'text goes here'; $encoded = base64_encode($str); $decoded = base64_decode($encoded); Quote Link to comment Share on other sites More sharing options...
JustinK101 Posted June 24, 2007 Author Share Posted June 24, 2007 Ok, cool that seemed to work. What exactly does that function do? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.