A lock and key is a very old mechanism