AN ALGORITHMIC FRAMEWORK FOR TEXT ENCRYPTION BASED ON A CLOSED KNIGHT’S TOUR ON OPTIMAL-SIZED BOARDS
DOI:
https://doi.org/10.55766/sujst10739Keywords:
Knight’s Tour, Cryptography, Symmetric Key, Algorithm Design, Optimization, Graph TheoryAbstract
The application of knight's tour permutations to data encryption has been explored for media such as images and video, where algorithms typically operate on standardized, fixed-size blocks of data. This paper addresses a different and more fundamental challenge: the encryption of variable-length text, where no predefined block size exists. The primary contribution of this work is a novel algorithmic framework that determines the optimally sized rectangular board that admits a closed knight's tour and minimizes the padding required for a given text length. Using this framework, we develop a complete symmetric-key cryptosystem that combines a Vigenère-style XOR substitution for confusion with a knight’s tour-based permutation for diffusion. To improve robustness, we incorporate an iterative board-resizing mechanism to handle cases in which the tour-finding heuristic fails. The system's performance reveals an efficient board-finding process that both theoretically and empirically minimizes padding, along with a non-linear increase in encryption time for input length increases. Security analysis demonstrates that the cipher obfuscates plaintext statistics and has a large keyspace,; however, it exhibits a poor avalanche effect, consistent with its single-round architecture. This work lies at the intersection of graph theory, optimization, and cryptography, and it concludes by proposing a multi-round architecture with improved diffusion for future research.
References
Chia, G. L., & Ong, S. H. (2005). Generalized knight’s tours on rectangular chessboards. Discrete Applied Mathematics, 150(1-3), 80-98. https://doi.org/10.1016/j.dam.2004.11.008
Delei, J., Sen, B., & Wenming, D. (2008). An image encryption algorithm based on knight’s tour and slip encryption-filter. In 2008 International Conference on Computer Science and Software Engineering (pp. 251-255). IEEE. https://doi.org/10.1109/CSSE.2008.1142
Demaio, J., & Hippchen, T. (2009). Closed knight’s tours with minimal square removal for all rectangular boards. Mathematics Magazine, 82(3), 219-225. https://doi.org/10.1080/0025570X.2009.11953624
Gerlach, J. R. (2015). The knight’s tour in chess-Implementing a heuristic solution. In SAS Global Forum 2015 Proceedings. SAS Institute.
Gordon, V. S., & Slocum, T. J. (2004). The knight’s tour-Evolutionary vs. depth-first search. In Proceedings of the 2004 Congress on Evolutionary Computation (pp. 1435-1440). IEEE. https://doi.org/10.1109/CEC.2004.1331065
Khan, M. F., Saleem, K., Shah, T., Hazzazi, M. M., Bahkali, I., & Shukla, P. K. (2022). Block cipher’s substitution box generation based on natural randomness in underwater acoustics and knight’s tour chain. Computational Intelligence and Neuroscience, 2022, Article 8338508. https://doi.org/10.1155/2022/8338508
Lin, S. S., & Wei, C. L. (2005). Optimal algorithms for constructing knight’s tours on arbitrary n × m chessboards. Discrete Applied Mathematics, 146(3), 219-232. https://doi.org/10.1016/j.dam.2004.11.002
Mahmood, A. S., & Mohd Rahim, M. S. (2017). Generating and expanding of an encryption key based on knight tour problem. Journal of Theoretical and Applied Information Technology, 95(7), 1485-1496. https://www.jatit.org/volumes/Vol95No7/17Vol95No7.pdf
Nie, S. A., Sulong, G., Ali, R., & Abel, A. (2019). The use of least significant bit (LSB) and knight tour algorithm for image steganography of cover image. International Journal of Electrical and Computer Engineering, 9(6), 5218-5226. https://doi.org/10.11591/ijece.v9i6.pp5218-5226
Oraby, E. O., & Hamza, R. M. (2023). A modified KLEIN encryption-based knight tour for image encryption. Journal of Applied Engineering and Technological Science, 5(1), 268-278. https://doi.org/10.37385/jaets.v5i1.3296
Parberry, I. (1997). An efficient algorithm for the knight’s tour problem. Discrete Applied Mathematics, 73(3), 251-260. https://doi.org/10.1016/S0166-218X(96)00010-8
Philip, A. (2013). A generalized pseudo-knight’s tour algorithm for encryption of an image. IEEE Potentials, 32(6), 10-16. https://doi.org/10.1109/MPOT.2012.2219651
Pohl, I. (1967). A method for finding Hamilton paths and knight’s tours. Communications of the ACM, 10(7), 446-449. https://doi.org/10.1145/363427.363463
Romanuke, V. V., Yaremko, S. A., Kuzmina, O. M., & Yehoshyna, H. A. (2024). Data scrambler knight tour algorithm. System Research and Information Technologies, (3), 44-63. https://doi.org/10.20535/SRIT.2308-8893.2024.3.03
Schwenk, A. J. (1991). Which rectangular chessboards have a knight’s tour? Mathematics Magazine, 64(5), 325-332. https://doi.org/10.1080/0025570X.1991.11977627
Singh, M., Kakkar, A., & Singh, M. (2015). Image encryption scheme based on knight’s tour problem. Procedia Computer Science, 70, 245-250. https://doi.org/10.1016/j.procs.2015.10.081
Squirrel, D., & Çull, P. (1996). A Warnsdorff-rule algorithm for knight’s tours [Unpublished manuscript].
Yates, C. I., He, J. Y., & Schmidt, N. J. (2025). Comprehensive solutions to variations of the knight’s tour problem. International Journal of High School Research, 7(3), 71-81.
Younus, Z. S., & Younus, G. T. (2019). Video steganography using knight tour algorithm and LSB method for encrypted data. Journal of Intelligent Systems, 29(1), 1216-1225. https://doi.org/10.1515/jisys-2018-0225
Downloads
Published
How to Cite
License
Copyright (c) 2026 Rawin Youngnoi

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.








