tags:

views:

102

answers:

2

i am using SHA1 so i want to convert the output of this SHA1 to integer

A: 

How about

echo preg_replace("/[^0-9]/i", "", sha1("apikot"));
Andrei Serdeliuc
A: 

You could represent 160 bits in 5 long ints. That could be an array of 5 long ints, or you could have it be an array of 10 short ints. Are you trying to make it easier to handle than a string of characters/bits?

mahboudz