changeing password with 4x4 matrix keypad

Hi, everybody. I have a problem with keypad I do not understand how is it possible to change password.
I wanted to use code like this but it has error. Please help me.

#include <LiquidCrystal.h>
#include <Password.h> //
#include <Keypad.h> //

Password password = Password( "1234" ); //says the password is 1234

const byte ROWS = 4; // Four rows
const byte COLS = 4; //  columns
// Define the Keymap
char keys[ROWS][COLS] = {

byte rowPins[ROWS] = { 7,6,1,0 };// Connect keypad ROW0, ROW1, ROW2 and ROW3 to these Arduino pins.
byte colPins[COLS] = { 13,10,9,8, };// Connect keypad COL0, COL1 and COL2 to these Arduino pins.

// Create the Keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
LiquidCrystal lcd(12,11,5,4,3,2);

void setup(){
  lcd.print("Enter your code:"); 
  keypad.addEventListener(keypadEvent); //add an event listener for this keypad

void loop(){

//take care of some special events
void keypadEvent(KeypadEvent eKey){
  switch (keypad.getState()){
    case PRESSED:
	switch (eKey){
	  case 'k': checkPassword(); break;
	  case 'M': password.reset(); break;
          case 'K': passwordChange(); break;
	  default: password.append(eKey);

void checkPassword(){
  if (password.evaluate()){
    lcd.print("Acsess granted");
    //Add code to run if it works
    lcd.print("Acsess denied");
    //add code to run if it did not work

void passwordChange()
  int eKey = keypad.getKey();
  if(eKey == 'K')
  else if (eKey == 'k') setup();

Mikk Kruusalu

It would help to know what the error is.

Hello, the error what it shows me is:

Password_Keypad_lcd.ino: In function 'void passwordChange()': Password_Keypad_lcd:70: error: no match for call to '(Password) (int&)'

It is telling you that you do not have a function named password in your sketch What ispassword(eKey);supposed to do ?

Please post me a code for chancing password. And please use there password library.

I do not have the password library and I have never used it but at I see

Functions set(password)

Set the target password equal to password.

Warning: The new password should be a global variable (not a local function variable) as this function copies a pointer to the new password into the library, not a copy of the password.

Thanks a lot. :)