A security protocol for instant messaging