1. A method in an electronic device, the method comprising: extracting a pattern and converting the extracted pattern into a first pattern of a binarized grid type; verifying pixel information of the first pattern; and determining whether the first pattern is identical to an original pattern in consideration of a similar degree between the pixel information of the first pattern and pixel information of the original pattern.