The handshake is perhaps the most common gesture of greeting and agreement in the modern world . It can be traced back to medieval times as a signal to rivals that they were unarmed and safe , but a handshake today is a red flag for germ transmission , and as a result it is on the decline .