How to encrypt/decrypt a long string in PHP?
Posted
by jodeci
on Stack Overflow
See other posts from Stack Overflow
or by jodeci
Published on 2010-06-08T09:17:02Z
Indexed on
2010/06/08
9:22 UTC
Read the original article
Hit count: 251
php
|encryption
I doubt if this is encryption but I can't find a better phrase. I need to pass a long query string like this:
http://test.com/test.php?key=[some_very_loooooooooooooooooooooooong_query_string]
The query string contains NO sensitive information so I'm not really concerned about security in this case. It's just...well, too long and ugly. Is there a library function that can let me encode/encrypt/compress the query string into something similar to the result of a md5() (similar as in, always a 32 character string), but decode/decrypt/decompress-able?
© Stack Overflow or respective owner