A few points to keep in mind
● As with every language, Russian too has a formal and informal tone to its basic greetings. The formal tone is reserved for strangers, seniors, and elderly people, whereas the informal tone may be used among peers, or someone whom you've come to know over time, and are friendly with.