Linked Questions
12 questions linked to/from PHP short hash like URL-shortening websites
4 votes
2 answers
5k views
PHP short form of uniqid() to generate unique url tokens? [duplicate]
Possible Duplicate: PHP short hash like URL-shortening websites I need a function in which I can make url tokens with unique alpha-numeric tokens, I would use uniqid but it is too long for a user-...
0 votes
4 answers
4k views
How to use a short unique hash (with only 4-6 chars) from urls [duplicate]
Possible Duplicate: php short hash I need to generate a short hash. The shortest possible from urls say under 6 characters. I need them to be unique just for the same domain, so a hash from www....
0 votes
4 answers
502 views
Shorter hash strings without compromising security [duplicate]
Possible Duplicate: php short hash MD5 hashes are long and inconvenient to use. How can I further encode a md5 string to produce a shorter string using a subset of characters, for example a-z, A-Z ...
2 votes
1 answer
4k views
Perfect Hash Function for Human Readable Order Codes
I am trying to generate non-sequential human readable order codes derived from (lets say) a unsigned 32bit internal id that starts at 1 and is auto incremented for each new order. In my example code ...
13 votes
4 answers
4k views
Good numeric hashes
I'm looking to hash a string but I need the output to be an integer so I can't do md5. Do people here have any favorite numeric hashes that they might want to enlighten me with. I'm using PHP. ...
2 votes
3 answers
12k views
URL parameters value encryption/decryption
i want to encrypt the url parameters value like http://www.sitename.com/index.php?userid=12546 into http://www.sitename.com/index.php?userid=SADFFHGFE to prevent the robots to hack the userids which ...
6 votes
2 answers
6k views
Generating Unique 8 Character Hex Strings
Just as a fun project I wanted to try and make a simple URL shortener for my own personal use but I wanted to try and incorporate things that I liked from other shorteners like bit.ly and such. So I'...
2 votes
3 answers
3k views
How to generate a hash string with some special rules in PHP?
I'm working on a project where I need to use some hash function to make a hash string. This hash string should be unique consists of 6 to 13 characters (fixed length). I use a database to store data, ...
0 votes
1 answer
1k views
Javascript & php : How to encode a normal string in a encoded short string?
I have a normal string : var string = "Hello i'm fine" I want to encode it in a short encoded string. And i want to retrieve the original long string by decoding the short string. Base64 don't ...
0 votes
2 answers
177 views
Redirect a shortened .co url to a full-lengthed .com as Twitter.com has done with t.co (php/apache)
I'd like to make shortened links for my site to be used in Tweets. I'm interested in a t.co-like URLs but confused on how to implement the redirect. Here's how a link on my site typically looks: ...
3 votes
2 answers
105 views
Determine CRC algorithm from recorded data
I have the following recorded command packets, 32 byte each: 3da89fc200180010000000000000000024100001240400010000000000000000 d427eb5a00180010000000000000000024100001240300010000000000000000 ...
1 vote
2 answers
147 views
Creating Short Links using intval and base_convert
I found a question about making short codes like TinyURL (https://stackoverflow.com/a/960364/1778465), and I am not sure if what I am doing is working. I have the following test code: <?php $val =...