Shalom is a Hebrew word meaning peace and can be used idiomatically to mean hello and goodbye.
As it does in English, it can refer to either peace between two entities, or to the well-being, welfare or safety of an individual or a group of individuals. From Wikipedia