comoute MD5 and SHA1 hash before signing