TARU PUBLICATIONS
Journal of Information and Optimization Sciences cover
Open Access ·Peer-reviewed·ISSN (Online): 2169-0103·ISSN (Print): 0252-2667

WoS  JIF 2026 : 0.4 (Q4)

Powered by:Powered by

Monthly Journal: Publishes theoretical and applied research on topics in information and optimization sciences.

Issues up to 2022 co-published with and available at:Taylor & Francis
submissions@tarupublications.com
Open Access Research Article

A discrete mathematical approach for cryptanalysis using the normalized cipher randomness index

, *

* Corresponding author · click or hover a name for details

pp. 3127–3142Vol. 47Issue 8August 2026DOI: 10.47974/JIOS-2363XML
Received:
01 Mar 2026
Published Online:
31 Aug 2026
Article type:
Research Article
Language:
EN
Article no.:
JIOS-2363
Pages:
3127–3142

Abstract

This paper presents a discrete mathematical framework for machine learning-based cryptanalysis aimed at the automatic identification of classical encryption algorithms. Traditional cryptanalysis methods rely heavily on manual statistical analysis, whereas recent machine learning approaches often lack theoretical justification for feature separability. To address this limitation, this study introduces a novel hybrid statistical invariant termed the Normalized Cipher Randomness Index (NCRI), which integrates Shannon entropy and the Index of Coincidence into a unified mathematical formulation. The proposed framework extracts statistical features from ciphertext, including entropy, Index of Coincidence, repetition rate, and letter frequency distribution, and augments them with NCRI to enhance discriminative capability. A theoretical analysis is developed to establish that NCRI provides separability between monoalphabetic and polyalphabetic ciphers. The extracted features are used to train multiple supervised learning models, including Random Forest, Support Vector Machine (SVM), and XGBoost, with an ensemble learning strategy employed to improve robustness. Experimental evaluation demonstrates that the proposed approach achieves high classification accuracy of approximately 99%, with clear statistical separation between cipher types. The results confirm that NCRI significantly enhances feature representation and improves classification performance. The proposed framework provides a theoretically grounded and computationally efficient solution for automated cryptanalysis and highlights the potential of integrating discrete mathematical modeling with machine learning techniques in cryptographic security analysis.

Keywords

Subject Classifications

Primary 94A60Secondary 94A62

References

[1] H. Taherdoost, T.-V. Le, and K. Slimani, “Cryptographic techniques in artificial intelligence security: A bibliometric review,” Cryptography, vol. 9, no. 1, Art. no. 17 (2025), doi: 10.3390/cryptography9010017.

[2] A. Benamira, D. Gérault, T. Peyrin, and Q. Q. Tan, “A deeper look at machine learning-based cryptanalysis,” in Advances in Cryptology—EUROCRYPT 2021, pp. 805–835 (2021), doi: 10.1007/978-3-030-77870-5_28.

[3] B. D. Kim, V. A. Vasudevan, R. G. L. D’Oliveira, A. Cohen, T. Stahlbuhk, and M. Médard, “Cryptanalysis via machine learning based information theoretic metrics,” arXiv preprint arXiv:2501.15076 (2025).

[4] M. Teng, C. Gao, Z. Wang, and X. Li, “A communication-based identification of critical drones in malicious drone swarm networks,” Complex. Intell. Syst., vol. 10, pp. 3197–3211 (2024), doi: 10.1007/s40747-023-01316-9.

[5] R.-T. Su, J.-J. Ren, and S.-Z. Chen, “Improved framework of related-key differential neural distinguisher and applications to the standard ciphers,” Cryptology ePrint Archive, Rep. 2025/537 (2025).

[6] C. Millichap and Y. Yau, “An artificial neural network approach to finding the key length of the Vigenère cipher,” Cryptologia, vol. 49, no. 4, pp. 331–347 (2025), doi: 10.1080/01611194.2024.2351117.

[7] W. Stallings, Cryptography and Network Security: Principles and Practice, 7th ed. Pearson (2017).

[8] S. Singh, The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography. New York, USA: Anchor Books (2000).

[9] D. Kahn, The Codebreakers: The Comprehensive History of Secret Communication from Ancient Times to the Internet. New York, USA: Scribner (1996).

[10] A. J. Abd and S. Al-Janabi, “Classification and identification of classical cipher type using artificial neural networks,” J. Eng. Appl. Sci., vol. 14, no. 11, pp. 3549–3556 (2019), doi: 10.36478/jeasci.2019.3549.3556.

[11] Z. Tolba, M. Derdour, and N. E. H. Dehimi, “Machine learning based cryptanalysis techniques: Perspectives, challenges and future directions,” in Proc. 4th Int. Conf. Pattern Anal. Intell. Syst. (PAIS), pp. 1–7 (2022).

[12] S. A. Sepúlveda-Fontaine and J. M. Amigó, “Applications of entropy in data analysis and machine learning: A review,” Entropy, vol. 26, no. 12, Art. no. 1126 (2024), doi: 10.3390/e26121126.

[13] A. Hoayek and D. Rullière, “Assessing clustering methods using Shannon’s entropy,” Inf. Sci., vol. 689, Art. no. 121510 (2025), doi: 10.1016/j.ins.2024.121510.

[14] J. J. Dani, K. Nakka, and N. Saxena, “A machine learning-based framework for assessing cryptographic indistinguishability of lightweight block ciphers,” in Proc. 22nd Annu. Int. Conf. Privacy, Security Trust (PST), pp. 1–10 (2025).

[15] A. Singh, K. B. Sivangi, and A. N. Tentu, “Machine learning and cryptanalysis: An in-depth exploration of current practices and future potential,” J. Comput. Theor. Appl., vol. 1, no. 3, pp. 257–272 (2024), doi: 10.62411/jcta.9851.

[16] J. Terven, D.-M. Cordova-Esparza, J.-A. Romero-González, A. Ramírez-Pedraza, and E. A. Chávez-Urbiola, “A comprehensive survey of loss functions and metrics in deep learning,” Artif. Intell. Rev., vol. 58, Art. no. 195 (2025), doi: 10.1007/s10462-025-11198-7.

[17] Google Developers, “Classification: Accuracy, precision, recall, and related metrics,” Machine Learning Crash Course. [Accessed: Apr. 8, 2025].

[18] A. Noonia, D. Thakral, P. Mathur, F. Sheth, H. Shaikh, and A. K. Gupta, “A discrete mathematical model and cryptography for secure medical image analysis: Encrypted chest X-ray classification,” J. Discrete Math. Sci. Cryptogr., vol. 28, no. 5-A, pp. 1473–1486 (2025), doi: 10.47974/JDMSC-2146.

[19] D. Goyal, F. Sheth, P. Mathur, and A. K. Gupta, “Discrete mathematical models for enhancing cybersecurity: A mathematical and statistical analysis of machine learning approaches in phishing attack detection,” J. Discrete Math. Sci. Cryptogr., vol. 27, no. 2-B, pp. 569–599 (2024).

[20] R. Joshi, P. Mathur, A. K. Gupta, S. Singh, V. Paliwal, and S. Nayar, “Mathematical modeling of intelligent system for predicting effectiveness of premenstrual syndrome,” J. Interdiscip. Math., vol. 26, no. 3, pp. 551–562 (2023).

Views: 155Downloads: 126Citations: 0