file name encoding / decoding
Date: September 22, 2008 10:22AM
Hi folks,
This is my first post so forgive me if my question is "out of bounds".
I'm looking for an answer on how filenames I encounter are encoded.
It looks like uploaded pictures have a systematic way of scrambling.
Username and the image file number are part of it I'm sure.
For instance a filename is build like this:
USERNAME_randomlettersanddigits_filenumber.jpg
so USERNAME_leo93nf83jsy6km_2.jpg
(just examples)
What I figured out already:
- It's always the number of characters of the username plus 7 (might include the filenumber as well).
- if the number of the file >10 it adds up 2 characters in the scrambled filename.
- All lowercase, letters and numbers
- deleting a file and uploading a new one gives the same encoded filename. So no random generator, date or time.
here are a couple of real filenames...
LUNA6_4njuojf2aojzhs_49.jpg
LUNA6_22nynfj66smf6h_50.jpg
LUNA6_d9k5ligy9pp9hn_51.jpg
MM_u40cn3pop_4.jpg
BRIEVENBUSJE_46sdgtceowpjp3brnzk_2.jpg
BRIEVENBUSJE_akijwwfgf0wgjsewnp0_8.jpg
BRIEVENBUSJE_7pctf337zdjjzji6mzvz8_80.jpg
It looks like a code to crack...
Any suggestions?
Thanks in advance.