We present a new quantum private comparison protocol based on the three-particle
GHZ states. In this protocol, we prepare two types of GHZ states and use their
entanglement properties to encode and compare the private information of X and
Y. We also discuss that our protocol can withstand all various kinds of outside
attacks and participant attacks.