1. A method of input of a security code by means of a touch screen of an electronic device for access to a function, a device or a given location, said touch screen comprising control keys, which can be activated by a manual action of a user using a finger or a stylus, each of said keys being made up of at least one sensitive pad linked to a microprocessor unit of the electronic device, wherein the method comprises a series of steps in an entry mode of the security code, which consists of a) placing a finger or stylus on a first key of the touch screen, which represents a first reference of the code to be entered; b) moving the finger or stylus on the touch screen from the first key to a second key of the touch screen, which represents a second reference of the code to be entered, over a specific trajectory, wherein the microprocessor unit registers the sensitive keys or pads activated during the movement of the finger or stylus on the screen to determine the security code.