】Following the existing two-dimensional code encoding standards, a two-dimensional code encryption algorithm based on an asymmetric cryptosystem is proposed, enabling the information in the two-dimensional code to be transmitted securely in an insecure channel. 【Methods】Taking into account the characteristics of the two-dimensional code, the generated 0 - 1 plaintext information is encrypted during the two-dimensional code encoding stage. The Logistic chaotic model is used to permute and encrypt the 0 - 1 plaintext information, and at the same time, the plaintext of the parameters of the Logistic chaotic model is encrypted using the RSA encryption algorithm. Then, the encrypted information ciphertext and parameter ciphertext are encoded together into the two-dimensional code image for transmission. 【Results】The asymmetric encryption of the two-dimensional code is achieved, and the entire encryption algorithm is named the R - L encryption algorithm. 【Conclusion】The example results show that the R - L encryption algorithm is simple and easy to operate, has a low algorithm complexity, and has reliable security performance.
】遵循现有的二维码编码标准,提出了一种基于非对称密码体制的二维码加密算法,使得二维码中的信息能够在不安全的信道中安全地传输。【方法】考虑到二维码的特点,在二维码编码阶段对生成的 0-1 信息明文进行加密。运用Logistic 混沌模型对 0-1 信息明文进行置换加密,同时对 Logistic 混沌模型的参数明文运用 RSA 加密算法进行加密,然后将加密得到的信息密文和参数密文一同编入二维码图像中进行传输。【结果】实现了二维码非对称加密,整个加密算法命名为 R-L 加密算法。【结论】实例结果表明, R-L 加密算法操作简单易行,算法复杂性不高,安全性能可靠。