An electronic device comprising: a touch screen configured to detect one or more touch inputs; and a processor configured to: detect, through the touch screen, a plurality of touch inputs for configuring a small and a large touch size reference areas, detect a touch area corresponding to each of the plurality of touch inputs, determine the reference areas based on the average of the touch areas of the plurality of touch inputs, detect a touch size with respect to the determined reference areas associated with each of a sequence of touch inputs detected through the touch screen, display, at an area in the touch screen, a first variable corresponding to the touch size with respect to the determined reference areas associated with a first of the sequence of touch inputs, display, at the area in the touch screen, a second variable corresponding to the touch size with respect to the determined reference areas associated with a second of the sequence of touch inputs, wherein the second variable locates beside the first variable, determine a pattern comprising a plurality of variables respectively corresponding to the touch inputs included in the sequence, the plurality of variables comprising the first and the second variables, and display the pattern at the area in the touch screen, wherein, when the electronic device is in a locked state, the processor is further configured to: create a user input pattern, based on the touch size with respect to the determined reference areas associated with each of a sequence of at least one further touch input detected through the touch screen; compare the user input pattern and the determined pattern; and unlock the electronic device, based on the result of the comparison of the user input pattern and the determined pattern. a touch screen configured to detect one or more touch inputs; and a processor configured to: detect, through the touch screen, a plurality of touch inputs for configuring a small and a large touch size reference areas, detect a touch area corresponding to each of the plurality of touch inputs, determine the reference areas based on the average of the touch areas of the plurality of touch inputs, detect a touch size with respect to the determined reference areas associated with each of a sequence of touch inputs detected through the touch screen, display, at an area in the touch screen, a first variable corresponding to the touch size with respect to the determined reference areas associated with a first of the sequence of touch inputs, display, at the area in the touch screen, a second variable corresponding to the touch size with respect to the determined reference areas associated with a second of the sequence of touch inputs, wherein the second variable locates beside the first variable, determine a pattern comprising a plurality of variables respectively corresponding to the touch inputs included in the sequence, the plurality of variables comprising the first and the second variables, and display the pattern at the area in the touch screen, wherein, when the electronic device is in a locked state, the processor is further configured to: create a user input pattern, based on the touch size with respect to the determined reference areas associated with each of a sequence of at least one further touch input detected through the touch screen; compare the user input pattern and the determined pattern; and unlock the electronic device, based on the result of the comparison of the user input pattern and the determined pattern. detect, through the touch screen, a plurality of touch inputs for configuring a small and a large touch size reference areas, detect a touch area corresponding to each of the plurality of touch inputs, determine the reference areas based on the average of the touch areas of the plurality of touch inputs, detect a touch size with respect to the determined reference areas associated with each of a sequence of touch inputs detected through the touch screen, display, at an area in the touch screen, a first variable corresponding to the touch size with respect to the determined reference areas associated with a first of the sequence of touch inputs, display, at the area in the touch screen, a second variable corresponding to the touch size with respect to the determined reference areas associated with a second of the sequence of touch inputs, wherein the second variable locates beside the first variable, determine a pattern comprising a plurality of variables respectively corresponding to the touch inputs included in the sequence, the plurality of variables comprising the first and the second variables, and display the pattern at the area in the touch screen, wherein, when the electronic device is in a locked state, the processor is further configured to: create a user input pattern, based on the touch size with respect to the determined reference areas associated with each of a sequence of at least one further touch input detected through the touch screen; compare the user input pattern and the determined pattern; and unlock the electronic device, based on the result of the comparison of the user input pattern and the determined pattern. create a user input pattern, based on the touch size with respect to the determined reference areas associated with each of a sequence of at least one further touch input detected through the touch screen; compare the user input pattern and the determined pattern; and unlock the electronic device, based on the result of the comparison of the user input pattern and the determined pattern.