compare two binaries.

Dear

I want to know how i can compare between two binaries by using check sum command.

/usr/bin/sum <<path to binary1>>
/usr/bin/sum <<path to binary2>>

On Solaris 10, you also have the digest command which supports md5 checksumming.