I can’t figure out how to encode a string + current hour in a somewhat shortish garbled result… something like:
$random = base64_encode($_POST['phone']);
with a date appended to the phone var that’s also encoded, when I do the above it comes out to a long garbled mess, I’d like it to be somewhat shorter. Is there a way to do this that I’m missing ?
I’ll answer your question literally, since I can’t get any insight into your actual use case or what your real goals are.
Just keep in mind that this is not truly a random string, and that you’ll be encoding your data into a form that will prevent you from picking apart the two separate pieces of data.