To dream of a handshake represents co-operation or partnership. Choosing to not argue. Reaching an agreement.
To shake hands with an evil or bad person represents acceptance of negative thoughts, or giving in to negativity. Partnership with people who believe are dishonest or immoral. Willingly selling out your principles. Welcoming bad influences into your life.