The invention discloses a dynamic
authentication method for communication equipment and an
optical module. The method comprises the following steps: the communication equipment judges whether the
optical module is accessed or not; when the communication equipment judges that an
optical module is accessed, first information of the optical module is read, and dynamic
encryption data is generated according to the first information; the communication equipment writes the dynamic
encryption data into the optical module according to a preset format; the communication equipment reads
backup verification data generated by the optical module after the dynamic
encryption data is written in; the communication equipment checks according to the
backup check data, and judges whether the optical module is a legal optical module or not; and the communication equipment records and stores the first information of the legal optical module to complete dynamic
authentication. According to the method, a dynamic
authentication mode is adopted, the authentication data is dynamically generated while the authentication data is closely connected with key information of the equipment and the optical module, the authentication data is difficult to crack through
modes of illegal clone reading, dictionary
brute force cracking and the like, the safety is improved, and more guarantee is provided for the network quality.