How can i control multiple relay using one keypad

Hello everyone,
I am working on a new Home Automation project in that I want to Control 6 locks with one keypad.
where the password for each lock(relay/solenoid) would be different form each of the relay/solenoid.

Working:
If anyone enters a right password for any locks out of 6 and hit enter button on Keypad the lock should activate for some predefined time(ex: 300 ms) and after this time lock should be closed.

Ps: I have an Arduino Uno and unable to code for the same, is there someone who could please help me regarding this.
Thanks a lot in advance.

If you can write code to collect the input from the keypad, and store that data in an array, and compare the contents of that array to another array, doing the same comparison 6 times, with 6 different arrays, and 6 different "do this if the arrays match" sections would be trivial.

Post the code you currently have.