Method for controlling the locking of an electronic lock, including the following steps: a user is identified vis-à-vis the electronic lock by entering a personal code on data input means of the lock, the electronic lock displays a question, the user transmits the question by means of a mobile equipment to a central station, the central station computes the answer to the question and transmits this answer to the user's mobile equipment for it to be displayed to and read by the user, the user enters the answer in the lock, the lock verifies whether the answer is correct and decides according to this answer whether to unlock the door, wherein said user performs a particular manipulation when entering his/her personal code when wishing to indicate he/she is under duress, the lock detects if a particular manipulation is performed when the user's personal code is entered, the lock generates and displays a question depending on a possible detection of a particular manipulation, said central station reacts by generating a modified answer to said question, said modified answer being different from the answer generated when said particular manipulation is not performed, when said user enters said modified answer, said lock performs at least one of the following actions: keeping the lock locked; temporizing the unlocking of the lock by unlocking after a time lapse longer than the usual time lapse; displaying a message on the display of said lock; triggering an alarm; destroying or marking the contents of the device protected by said lock. a user is identified vis-à-vis the electronic lock by entering a personal code on data input means of the lock, the electronic lock displays a question, the user transmits the question by means of a mobile equipment to a central station, the central station computes the answer to the question and transmits this answer to the user's mobile equipment for it to be displayed to and read by the user, the user enters the answer in the lock, the lock verifies whether the answer is correct and decides according to this answer whether to unlock the door, wherein said user performs a particular manipulation when entering his/her personal code when wishing to indicate he/she is under duress, the lock detects if a particular manipulation is performed when the user's personal code is entered, the lock generates and displays a question depending on a possible detection of a particular manipulation, said central station reacts by generating a modified answer to said question, said modified answer being different from the answer generated when said particular manipulation is not performed, when said user enters said modified answer, said lock performs at least one of the following actions: keeping the lock locked; temporizing the unlocking of the lock by unlocking after a time lapse longer than the usual time lapse; displaying a message on the display of said lock; triggering an alarm; destroying or marking the contents of the device protected by said lock. keeping the lock locked; temporizing the unlocking of the lock by unlocking after a time lapse longer than the usual time lapse; displaying a message on the display of said lock; triggering an alarm; destroying or marking the contents of the device protected by said lock.