Apparatus and method for controlling a security of electronic device

The present invention relates to an apparatus and method that can unlock the screen of the electronic device. According to various embodiments of the invention, the method of operation of the electronic device is operable to recognize the position of the input screen displayed on the lock; Operation for setting the input range to unlock the screen on the recognized location; Operation to trace the path of the input is recognized in the input range; If the matching and comparing the tracking path and the registered route may include an operation to unlock the screen. It is possible in various embodiments.