How can I use XOR for these base numbers?

I have 5 binary strings base64_encode () 'ed

wAD4Af8B/gHuA/4BzgP1A/8P/h//f/xv+z30D9IDSAE=

AAAgCPgf/B/4H/w1+B74Gfg/+B/8P/4f/D/8HwABAAA=

AAAAAMB/wP/A/8B/4HvAf+B/+n/3P/Y//z/4n4CDgAE=

AAAAXcB/wH/Af8B/wHfAP+B/6H/xf+7//r/4f0CngFY=

AAiwifAP+B/4D/gf8B74D/gd8V/4H/gP8B/8vwABAAA=

AAAAAAAA/QD/Af4B/iP+A/wD/A/+//7/+B+AAwAAAAA=

How can I XOR ( ^) each one in pairs and read 1 bit as a result. It seems like this should be simple, but I have no idea how to work with binary in PHP.

+3
source share
2 answers

pack and unpack functions are the ones you want to see. They allow you to convert from binary strings.

Of course you will also have to use the base decoding function 64 and bitwise functions

+3
source

Source: https://habr.com/ru/post/1719790/


All Articles