The invention discloses a switch
secure communication encryption method based on
quantum key distribution. The method comprises the following steps: a service party submits a'security-
delay-bandwidth 'intention to a zero-trust brain through a
quantum policy intention description language; evaluating the real-time quality, key margin and topology
accessibility of an
optical fiber quantum channel, a classical ultra-high-speed channel and a
radio frequency space channel according to intention requirements; triggering a QKD transmitting end and a receiving end to perform
quantum state transmission of polarization and OAM coding along the optimal quantum path, completing basis vector comparison, error code
verification and privacy amplification, generating a root quantum key, and injecting the root quantum key into an on-
chip quantum memory; when a data packet arrives at a switch port, the
assembly line takes out Kroot from the first-level key
pool, and derives a one-time
session key through the HMAC-SHA3; continuously monitoring a
quantum channel bit error rate, a key
pool margin and an AI abnormal
score; and the transmitting and receiving parties synchronously confirm and destroy the
session key, write all key life cycle events into a quantum invariant account book, and realize second-level auditing evidence obtaining through block chain hash anchoring.