http://arduino.cc/playground/Code/Password
Specifically, take a look at the "set" function.
password.set("1234");
You'll probably want to store said password in EEPROM so the password doesn't revert to the hard-coded password on bootup.
http://arduino.cc/playground/Code/Password
Specifically, take a look at the "set" function.
password.set("1234");
You'll probably want to store said password in EEPROM so the password doesn't revert to the hard-coded password on bootup.