Message authentication refers to the process of confirming the integrity of received messages on the network. Generally, a hash function, such as MD5 or SHA-1, is used to verify the integrity and authenticity of the text. Digital signature is a pair of public key and private key generated by public key system (such as RSA). The private key is used to sign the message, and the public key is used to verify the signature of the file, which plays a role in ensuring the non-repudiation of the file.