Bob wants to send a message to Alice. Concerned with integrity, he inserts his message into a one-way hash algorithm that creates message digest A. Bob then sends both the original message and message digest A to Alice.