The invention discloses a
quantum key
encryption communication method and
system based on a virtual
private network, relates to the technical field of data
encryption transmission, and solves the technical problems that the existing
quantum key online distribution is covered by an OKD network, the key providing capability and the
key generation rate are far lower than the
data transmission speed of a modern network, and the performance
bottleneck exists. According to the method, the data of the virtual
private network is transmitted and encrypted by taking online distribution of the
quantum key as a main part and pre-charging as an auxiliary part; the data is encrypted by the online distributed quantum key or the pre-charged quantum key, so that the
data security can be improved, and the performance
bottleneck of an online distribution mode can be avoided; according to the application, when the key supply gap is made up in the pre-charging mode, the quantum key surplus in the key demand gap before the
time range corresponding to the key supply gap and closest to the key supply gap is preferentially selected, and when pre-charging is carried out through the selected quantum key, due to the fact that the time from generation to use is short, the leakage risk can be greatly reduced.