I've got a problem. I been using MD5 hash as the name for images, but it's too damn long. What would you guys suggest as a shorter alternative solution?
>>37
But.. you're wrong. Unix time is only 10 characters. Filenames on 4chan are 13 chars because the last 3 chars are there in case two files are uploaded at the same time.
Name:
Anonymous2009-09-14 19:56
just a simple increment. That's all you need.
Name:
Anonymous2009-09-14 20:06
Use the full contents of the file as an ID.
Name:
Anonymous2009-09-15 18:51
>>43
Some sort of reversible AND unique hash?
BRILLIANT!
Name:
Anonymous2009-09-15 20:04
>>41
I always assumed the last three numbers were milliseconds.
Name:
Anonymous2009-09-15 21:19
the number of bytes in the file converted to base36
Name:
Anonymous2009-09-15 21:23
>>46
actually, why not just use MD5 instead?
assuming you're using a hex string representation of the hash value, converting that to base 36 effectively halves its length.
>>49
Insomuch that most OS's don't have a file system at all. But the ones that do, including all the most popular desktop and server OS's, tend to be permissive to a fault, requiring you only to escape somewhere between one and a dozen control characters.