The invention discloses a secure hidden three-element query method. The method comprises the following steps: a preprocessing stage: a queried party reads stored three-element data, splits the three-element data into three sub-data, performs hash processing to obtain three character string data, allocates a corresponding secret key to each character string data, calculates a first-level encryption string corresponding to each character string data, the query party encrypts the first-level encrypted string under the cooperation of the queried party to obtain a second-level encrypted string; the online processing stage comprises the following steps of: the query party reads input three-element data, generates three pieces of query data, rperforms hash processing to obtain three pieces of corresponding query character string data, calculating a decryption key corresponding to each piece of query character string data, sends the decryption key to a queried party, and sends a query result to the query party after the queried party queries. When three-element query is carried out, query conditions are hidden, data leakage is avoided, a queried party cannot record query information which is not in a database of the queried party, and user privacy is protected.