The application discloses a QR code
encryption and decryption method and
system based on
chaos theory and an AES
algorithm, relates to the
encryption and decryption technical field of QR codes, and comprises an
encryption process and a decryption process; the encryption process comprises the following steps: firstly,
chaotic sequences generated by improved Logistic mapping and Chebyshev mapping are subjected to XOR to obtain a composite
chaotic sequence, the composite
chaotic sequence is used as an initial key of AES grouping, and then
ciphertext is obtained through AES encryption. Grouping initial keys are dynamically generated, a newly generated key is used for encrypting one group of
plaintext data, the keys are completely independent, and therefore, one-time
password is realized. Then, the AES
algorithm is improved,
plaintext information is first encrypted, then secondary encryption is performed on the
plaintext information in a Base64 mode, final
ciphertext information is subjected to QR code standard coding, and an encrypted QR code is generated. Through the mode of increasing encryption
processing, the application effectively reduces
information leakage or information tampering problems caused by QR codes.