on any *n.x system, run: echo -n "text" | cksum | gawk '{printf("%08X",$1)}' or cksum <file> | gawk '{printf("%08X",$1)}'