Converting MD5 checksum to base64 will shorten the length from 32 characters to 24 characters.
Let’s say we are converting the MD5 checksum below
ef2eff22b9eddfac2f242245c66cddb1
To convert hexadecimal to base64, run the command below
echo ef2eff22b9eddfac2f242245c66cddb1|xxd -r -p|base64
# 7y7/Irnt36wvJCJFxmzdsQ==
To convert base64 back to hexadecimal
echo 7y7/Irnt36wvJCJFxmzdsQ==| base64 -d | hexdump -v -e '/1 "%02x" '
#ef2eff22b9eddfac2f242245c66cddb1