It has been well-documented by Stephen Nojiri and the works of Antony Cummins that the skillset of a shinobi included the art of lockpicking.
This art would have been used for a variety of purposes, from surreptitious entry into a restricted area, to escaping capture. In application of the principle, it is well that one routinely practice bypassing modern locks and learn of their components and security features. You may start by purchasing a lock-pick set, or smith your own tools from flexible but durable metals. You can purchase a number of practice tumbler pin locks as well, as these are among the most common locks encountered today.