How does a Padlock Work?

A padlock is a shackle with a key. The key is inserted and a series of tumblers determine if the key is correct to turn the cylinders. When properly aligned the cylinders release the shackle and the lock is opened.