How to easy encode and "compress" URL/e-mail adress to string in PHP?
String should be:
- difficult to decode by user
- as short as possible (compressed)
- similar URLs should be different after encoding
- not in database
- easy to decode/uncompress by PHP script
ex. input -> output, stackoverflow.com/1/ -> "n3uu399", stackoverflow.com/2/ -> "ojfiejfe8"