First of all, I'm sorry for my level of English . My question is, if there is any way to put a password to a door or vault?, thanks in advance.
Of course there is. But first you have to make it clear what kind of game you're making.
Is is like 100 Doors on Android/iOS where if you tap on a door a small dialogue box would open for your to put the code in?
Is it a PC game where you can enter the code via keyboard input?
Is it a top down game where if your character sprite collides with the door it will allow you to enter you password?
In either case it's just a matter of matching a 'right password' string with another string consisting of each element whatever you've input.