priti
February 5, 2010, 1:14am
1
hi,

I have a 288 bit long 2 string. on which I want to perform “AND” operation…

if someone has done big number mathematics in PHP let me know which library you have used.

I had gone thru GMP library if someone knows other useful library please share. I am collecting the various library options.

Thanks

There’s also the BC Math extension.

Pear Math_BigInterger abstracts GMP, BC Math and a version in pure PHP. It goes from best to worst. (GMP -> BC Math -> PHP).
http://phpseclib.sourceforge.net/documentation/math.html

Ren
February 6, 2010, 1:22pm
4
Erm, if its a binary representation of a 288 bits, ie 38 bytes long then can just use the & operator.

priti
February 8, 2010, 6:24am
5
oh gr8!! So i can use & operator itself… I may not be needing special library… some people say…that at time ‘&’ operator do not reflect correct result …??

priti
February 9, 2010, 1:27am
6
& and | are giving me expected output but with some reason I do not understand … when i perform XOR it gives alll the dummy characters…

any help?