A method of verifying the integrity of an electronic device having connected thereto at least one connectable or disconnectable component (3, 4), the method comprising: obtaining information specific to said at least one connectable or disconnectable component, the information being stored in said connectable or disconnectable component; preparing a temporary first master value on the basis of said information specific to said at least one connectable or disconnectable component; and authenticating said temporary first master value by using a previously-prepared second master value in order to determine the integrity of the electronic device, characterized in that the method further comprising obtaining information specific to the user of the electronic device as stored in said connectable or disconnectable component; and deducing the integrity of the electronic device from said authentication of said temporary first master value and from authentication of information specific to the user of the electronic device by using previously-obtained information specific to the user of the electronic device, the information specific to the user of the electronic device and stored in the connectable or disconnectable component and the previously-obtained information specific to the user of the electronic device being prepared on the basis of biometric information of the user and/or on the basis of a personal code of the user of the electronic device, the previously-obtained information specific to the user of the electronic device being stored in a secure memory of the electronic device or in a memory of a secure element of the electronic device or in a remote server. obtaining information specific to said at least one connectable or disconnectable component, the information being stored in said connectable or disconnectable component; preparing a temporary first master value on the basis of said information specific to said at least one connectable or disconnectable component; and authenticating said temporary first master value by using a previously-prepared second master value in order to determine the integrity of the electronic device, characterized in that the method further comprising obtaining information specific to the user of the electronic device as stored in said connectable or disconnectable component; and deducing the integrity of the electronic device from said authentication of said temporary first master value and from authentication of information specific to the user of the electronic device by using previously-obtained information specific to the user of the electronic device, the information specific to the user of the electronic device and stored in the connectable or disconnectable component and the previously-obtained information specific to the user of the electronic device being prepared on the basis of biometric information of the user and/or on the basis of a personal code of the user of the electronic device, the previously-obtained information specific to the user of the electronic device being stored in a secure memory of the electronic device or in a memory of a secure element of the electronic device or in a remote server.