If you want to use it, hash all passwords and compare them instead of using plain text.
You can punch the chest with the key and it will open when the key is correct.
Owners also can loose their key and still open the chest as regular.

Download: Download
License: WTFPL