A library for locking devices