I have following commands in linux as, base64 encoded string 'rITqHhVbOjGIWelaJbg==' in file test64.dat. used commands -
# base64 -d -i test64.dat >> test.dat
# echo "IV=" `hexdump test.dat | head -1 | cut -f 2- -d ' ' | sed s/' '//g ` >> abc.txt
# cat abc.txt
IV= 84ac1eea7515e86c21c6a5676f6b6ec9
I want to use python base64 module for decoding same string as in test64.dat, i tried below code
hexdump.dump(base64.b64decode('rITqHhVbOjGIWelaJbg=='))
It gives output as.
'AC 84 EA 1E 15 5B 3A 31 88 59 E9 5A 25 B8'
Can anyone please tell me why base64 decoded output is different, am i doing something wrong?
=at the end, to end up with a multiple of 4 characters as input. At that point, the Python output is correct.