Public key encryption using Hash digest
Combining hashes with public key cryptography.
5-mark Exam Answer
Simple public key encryption provides confidentiality but not authentication, nonrepudiation, or integrity. Laudon and Traver show how combining public key encryption with hash functions and digital signatures achieves all three.
- 1.Simple public key lacks authentication/nonrepudiation/integrity
- 2.Hash function → fixed-length message digest
- 3.Digital signature = encrypt with sender's private key
- 4.Provides authentication, nonrepudiation, integrity
- 5.Recipient re-hashes to verify
In public key cryptography, some elements of security are missing. Although the message's confidentiality is assured, there is no authentication of the sender, no nonrepudiation (the sender could deny sending), and no assurance the message was not altered in transit.
A more sophisticated use of public key cryptography can achieve authentication, nonrepudiation, and integrity. To check the integrity of a message, a hash function is used first to create a digest of the message. A hash function is an algorithm that produces a fixed-length number called a hash or message digest. Standard hash functions include MD4 and MD5, which produce 128- and 160-bit hashes.
The sender encrypts both the hash result and the original message using the recipient's public key, producing a single block of cipher text. Then, to ensure the authenticity of the message and nonrepudiation, the sender encrypts the entire block of cipher text one more time using the sender's private key. This produces a digital signature (also called an e-signature) or 'signed' cipher text that can be sent over the Internet.
A digital signature is a close parallel to a handwritten signature — only one person presumably possesses the private key. When used with a hash function, the digital signature is unique to both the individual and the document, and changes for every document. The recipient first uses the sender's public key to authenticate the message, then uses his or her own private key to obtain the hash result and original message, and finally re-applies the hash function to verify the message has not been changed.
Alice signs 'Buy Cisco @ $16' by hashing the message, encrypting with Bob's public key, then encrypting with her private key. Bob authenticates with Alice's public key, decrypts with his private key, and re-hashes to confirm integrity.
Public key encryption combined with hash digests and digital signatures provides the full set of security dimensions — confidentiality, authentication, nonrepudiation, and integrity — making it the foundation of secure e-commerce.
The exam interface follows the university paper pattern: Section A & B carry 5-mark questions; Section C carries objective questions.