basically i want to create a pin in digit only and token in HEXADECIMAL form and exact same length of 32bit and pin length is 5bit.
like a pin code i have
PIN: 15458 and its token code is Toke:
93f23ed246e7b2c47b5dbc6a341f2354PIN: 60703 and its token code is Token:
43e0e636d3f6b17615c96e2b5a9a908a
i want something like this programatically in php, asp, c#, javascript whatever is suitable to generate easily.
In which i can use in series like FOR LOOP statement
for($a = 10000; $a<60000; $a++)
{
echo $a." = ". token algorithm exactly like mentioned aboved.
}
suppose the for loop statement reaches $a = 15458
then it generate a token 93f23ed246e7b2c47b5dbc6a341f2354
token algorithm is the actual thing which i want.
A 32bit hex code is basically going to be only 4 characters long – you mean a 32 character code?
The simplest (and these days least reliable) method is to simply use
md5():