2. Question: Why are you allowed to say Shalom to someone in an unclean area nowadays?
A. Shalom is one of G-d’s names and also means peace.
B. The Mishna Berura (84:1:6) says saying Shalom to a person before davening shouldn’t be done because Shalom is one of G-d’s names as it says “They called Hashem, Shalom”, so to it is forbidden to give Shalom to a friend in the alley way and other dirty places.
Answer: Nowadays a person’s intent when saying shalom aleichem is only to say “may be peace be upon you,” not “may Hashem be with you”.