Saved in:
Bibliographic Details
Main Authors: Stojanović, Vanja, Lesar, Žiga, Bohak, CIril
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.14229
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916850070192128
author Stojanović, Vanja
Lesar, Žiga
Bohak, CIril
author_facet Stojanović, Vanja
Lesar, Žiga
Bohak, CIril
contents We investigate the cryptanalysis of affine ciphers using a hybrid neural network architecture that combines modular arithmetic-aware and statistical feature-based learning. Inspired by recent advances in interpretable neural networks for modular arithmetic and neural cryptanalysis of classical ciphers, our approach integrates a modular branch that processes raw ciphertext sequences and a statistical branch that leverages letter frequency features. Experiments on datasets derived from natural English text demonstrate that the hybrid model attains high key recovery accuracy for short and moderate ciphertexts, outperforming purely statistical approaches for the affine cipher. However, performance degrades for very long ciphertexts, highlighting challenges in model generalization.
format Preprint
id arxiv_https___arxiv_org_abs_2507_14229
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Using Modular Arithmetic Optimized Neural Networks To Crack Affine Cryptographic Schemes Efficiently
Stojanović, Vanja
Lesar, Žiga
Bohak, CIril
Cryptography and Security
We investigate the cryptanalysis of affine ciphers using a hybrid neural network architecture that combines modular arithmetic-aware and statistical feature-based learning. Inspired by recent advances in interpretable neural networks for modular arithmetic and neural cryptanalysis of classical ciphers, our approach integrates a modular branch that processes raw ciphertext sequences and a statistical branch that leverages letter frequency features. Experiments on datasets derived from natural English text demonstrate that the hybrid model attains high key recovery accuracy for short and moderate ciphertexts, outperforming purely statistical approaches for the affine cipher. However, performance degrades for very long ciphertexts, highlighting challenges in model generalization.
title Using Modular Arithmetic Optimized Neural Networks To Crack Affine Cryptographic Schemes Efficiently
topic Cryptography and Security
url https://arxiv.org/abs/2507.14229