The process of signing and verifying digital signatures (part 2)
After the signer hashes the contract content and signs it with a private key to create cipher hash A, the verification process proceeds as follows:
- The recipient receives the contract including the main content + cipher hash A. The recipient separates the document content and digital signature for independent processing.
- For the document content, the recipient hashes it using the same algorithm (MD5 or SHA) as the signer, producing H2 representing the recipient's hashed string: (software) -> hash + word file -> string H2.
- The recipient uses the signer's public key to decrypt cipher hash A, obtaining H: cipher hash A + public key -> string H.
- Compare H with H2. If they match, the content is intact, unchanged, and the digital signature verification is successful.
Source: Admin compilation