It is a casual greeting, similar to "Hi" or "Hey" in English. It's commonly used amongst friends and acquaintances.
However, it's important to note that "privet" is not used in formal situations. In those cases, you would use "Zdravstvuyte" (Здравствуйте) which is a more formal greeting.