The embodiment of the invention relates to the technical field of communication, and discloses an
IPSec VPN (
Internet Protocol Security Virtual
Private Network)-based
encryption communication method, equipment and a medium. The
encryption communication method based on the
IPSec VPN comprises the following steps: performing
quantum key negotiation with an opposite terminal in
quantum keys pre-stored at a home terminal; exchanging data with an opposite terminal; key derivation is carried out according to the negotiated
quantum key and key derivation parameters in the exchange data, a target key is obtained, and the target key is a key needed by
IPSec VPN
encryption communication; and carrying out negotiation
verification with the opposite terminal, so as to carry out encrypted communication with the opposite terminal according to the target key after the
verification is passed. The method at least facilitates more stable and effective combination of the quantum key to establish the IPSec VPN tunnel, and can realize more stable, effective and secure IPSec VPN encryption communication.