compute MD5 and SHA1 hash for SSL signing scheme