This paper addresses the problem of self-synchronization of dynamical systems in a so-called master-slave configuration. The study is motivated by potential cryptographic applications. It is shown that the notion of flatness is central for guaranteeing self-synchronization and that the concept of transmissions zeros plays also an important role. We motivate the fact that switched linear systems have great interest in this context.