1. A communications device for communicating within a communications network, comprising: an encryption device which encrypts outgoing messages at least partially by a code and an initialisation vector; and an initialisation-vector generator, which generates at least one initialisation vector at least partially on a basis of network information of the communications network.