A method for operating a device, the device comprising a processor, the processor comprising an isolated secured area, a display screen operatively connected to a display screen controller, the display screen controller operatively connected to the processor, a touch screen operatively connected to a touch screen controller, the touch screen controller operatively connected to the processor, and a secure element associated with the processor, the method comprising: generating a correspondence table, a hot spots layout and a visual representation of a scrambled keypad, the correspondence table associating positions of keys on the scrambled keypad and values, the hot spots layout defining geometries and locations of the positions of the keys on the scrambled keypad to be pressed on the touch screen, the visual representation of the scrambled keypad comprising the values; transmitting, to the secure element, the correspondence table; transmitting, to the display controller, the visual representation of the scrambled keypad; transmitting, to the touch screen controller, the hot spots layout; causing to display, by the display controller, the visual representation of the scrambled keypad on the display screen; detecting, by the touch screen controller, a touch event input from a user on the touch screen; generating, by the touch screen controller, a keying event based on the touch event input and the hot spots layout, the keying event identifying the corresponding key on the scrambled keypad pressed by the user on the touch screen; encrypting, by the touch screen controller, the keying event; transmitting, to the secure element, the encrypted keying event; decrypting, by the secure element, the encrypted keying event; and reconstituting, by the secure element, a personal identification code associated with the user based on the keying event and the correspondence table by retrieving the value from the correspondence table corresponding to the keying event. generating a correspondence table, a hot spots layout and a visual representation of a scrambled keypad, the correspondence table associating positions of keys on the scrambled keypad and values, the hot spots layout defining geometries and locations of the positions of the keys on the scrambled keypad to be pressed on the touch screen, the visual representation of the scrambled keypad comprising the values; transmitting, to the secure element, the correspondence table; transmitting, to the display controller, the visual representation of the scrambled keypad; transmitting, to the touch screen controller, the hot spots layout; causing to display, by the display controller, the visual representation of the scrambled keypad on the display screen; detecting, by the touch screen controller, a touch event input from a user on the touch screen; generating, by the touch screen controller, a keying event based on the touch event input and the hot spots layout, the keying event identifying the corresponding key on the scrambled keypad pressed by the user on the touch screen; encrypting, by the touch screen controller, the keying event; transmitting, to the secure element, the encrypted keying event; decrypting, by the secure element, the encrypted keying event; and reconstituting, by the secure element, a personal identification code associated with the user based on the keying event and the correspondence table by retrieving the value from the correspondence table corresponding to the keying event.