See also: https://www.lysator.liu.se/mit-guide/MITLockGuide.pdf and the book "Hackers".