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. Link to comment https://forums.phpfreaks.com/topic/56911-rearrangemask-a-string-contents/ 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); Link to comment https://forums.phpfreaks.com/topic/56911-rearrangemask-a-string-contents/#findComment-281150 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? Link to comment https://forums.phpfreaks.com/topic/56911-rearrangemask-a-string-contents/#findComment-281152 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.