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

Each password can open the door once