{'fraction_non_alphanumeric': 0.021714285714285714, 'fraction_numerical': 0.009142857142857144, 'mean_word_length': 4.918918918918919, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Modeling and Security Analysis Method of Quantum Key Distribution Protocol Based on Colored Petri Nets

As the core of quantum communication, the security analysis of Quantum Key Distribution (QKD) has always been a hot and difficult issue in the field of quantum communication. Aiming at the complicated and cumbersome problems existing in the current QKD protocol security analysis method, this paper proposes a formal analysis method based on colored Petri nets, and the Petri net model of BB84 protocol and B92 protocol is established by using this method. Man-in-the-middle attack is a common attack mode in quantum communication at present. We also use this method to model and analyze the man-in-the-middle attack. The experimental results show that BB84 and B92 protocols are as vulnerable to man-in-the-middle attack as any classical protocol without authentication.