KEYPAD SECURITY USING ARDUINO

Try to check this article from the playground:

http://www.arduino.cc/playground/Main/KeypadTutorial