Multiple Passwords for Arduino lock using keypad

I am making a simple arduino lock using a keypad and a servo motor. Though, I want the lock to have multiple passcodes.

I am using Password library right now and it doesn't allow what I want.

Any help will be appreciated.

Maybe sharing your work would help.

Always show us your ‘current’ complete sketch.
Use CTRL T to format the sketch.
Please use code tags.
Use the </> icon in the posting menu.

[code] Paste sketch here. [/code]

Show us a good schematic of your circuit.
Show us a good image of your wiring.
Give links to components.
Posting images:
https://forum.arduino.cc/index.php?topic=519037.0

Is it going to be reprogrammed through the keypad? That is, can you change codes without plugging in the USB and downloading a new sketch?

It is isn't. I just want the lock to have 10 passwords and it is supposed to open when any of them is entered using a keypad.

Here is an example using the password library for two passwords

If you show us your code, maybe we can help more.

Sounds like the OP either has top secret code, no code or wants code written for them.

@abhinavchoudhary
Always show us your 'current' complete sketch.
Use CTRL T to format the sketch.
Please use code tags.
Use the </> icon in the posting menu.

[code] Paste sketch here. [/code]

Show us a good schematic of your circuit.
Show us a good image of your wiring.
Give links to components.
Posting images:
https://forum.arduino.cc/index.php?topic=519037.0

"it is supposed to open"
Homework?

Maybe:
getNewCode();
for (byte x = 0; x < 10; x++)
{
if(newCode == tenPassCode[ x ] )
{
openLock();
newCode = 0;
}
}

your password will be "x" digits.
say you have a 5 digit password

you read the inputs from the keypad one at a time
assemble your 5 digit number from the inputs
user presses # to send

if (password == 55413 ) {
acceptedFlag = 1
}
else
if (password == 69712) {
acceptedFlag = 1
}
else
if (password == 13975) {
acceptedFlag = 1
}

and so on for your 10 codes

if (accptedFlag ==1) {
power servo
}

you might want to add timing so that no more than 4 tries in a minute, then a 2 minute break