Which library to use when you want to create password for a door lock system that can be used only once

What does this mean? No two passwords can be the same or each password can only open the door once? Something else?