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

Store the passwords in EEPROM and erase each one after it is used.