I need to generate a string of 7 chars that is based on the id of the row.
Posted
by Totty
on Stack Overflow
See other posts from Stack Overflow
or by Totty
Published on 2010-05-12T19:31:27Z
Indexed on
2010/05/12
19:34 UTC
Read the original article
Hit count: 119
code-generation
I need to generate a string of 7 chars that is based on the id of the row. So knowing the id of the image and a secret key, i should get the generated string.
the string must contain chars from "a" to "z" and numbers from 0 to 9.
I have a dir that contains photos like this
dir/p3/i2/s21/thumb.jpg
the generated string is p3i2s21, then is used to calculate the path of the image.
© Stack Overflow or respective owner