Some of the embodiments of the present disclosure provide a method comprising receiving an input from a touch input device. The input corresponds to a gesture produced by a user swiping a pattern on a surface of the touch input device. The method further comprises decomposing the gesture into segments, using a look-up table to determine alphanumeric elements that correspond to each of the segments, and assembling the alphanumeric elements into an encryption password.