Digital signature is a technology used to verify the integrity of digital data and the identity of the sender. Hash algorithm is a common method of digital signature. In order to ensure the invariance of digital signature, both parties agree to use hash algorithm.