Abstract: The invention concerns a lock and related key of the electronic type, which bases the unlocking of the lock on the matching of codes memorized in the lock and in the key, making it possible for one key to unlock a considerable number of pre-selected locks.