A method for protection against modification of data sent by a user to a
secure medium via a reader selects and stores some of the data.
Confirmation of the authenticity of the selected data is obtained by
verifying whether they are identical to those input on request by the
user in a secure communication mode of the reader. The method is
applicable to the protection against the modification of a command and/or
a document signed with an electronic signature.