When you talk to your friends you can use the shortest and least formal form 안녕! (an-nyeong).