1. A method to authenticate a user in an electronic device, the method comprising: detecting a request for an authentication function; in response to detecting the request for the authentication function, displaying a first string, wherein the first string comprises at least one user-defined number or character in a storage unit and at least one randomly selected number or character; receiving a second string including at least one user-input number or character via a touch screen; determining whether the at least one user-input number or character in the received second string is in a predefined one to one correspondence with the at least one user-defined number or character in the displayed first string; and determining a user authentication when the at least one user-input number or character in the received second string is in the predefined one to one correspondence with the at least one user-defined number or character in the displayed first string, wherein the user authentication is determined regardless of the others except at least one user-input number or character in the predefined one to one correspondence with the at least one user-defined number or character in the displayed first string.
1. A method to authenticate a user in an electronic device, the method comprising: detecting a request for an authentication function; in response to detecting the request for the authentication function, displaying a first string, wherein the first string comprises at least one user-defined number or character in a storage unit and at least one randomly selected number or character; receiving a second string including at least one user-input number or character via a touch screen; determining whether the at least one user-input number or character in the received second string is in a predefined one to one correspondence with the at least one user-defined number or character in the displayed first string; and determining a user authentication when the at least one user-input number or character in the received second string is in the predefined one to one correspondence with the at least one user-defined number or character in the displayed first string, wherein the user authentication is determined regardless of the others except at least one user-input number or character in the predefined one to one correspondence with the at least one user-defined number or character in the displayed first string. 4. The method of claim 1 , wherein the request of the authentication function occurs in response to a request to enter at least one predetermined content.