Enhancing Classical Cipher Type Detection: Prompt Engineering with Common LLMs versus Usage of Custom AI Models

dc.contributor.authorBastian, Maik
dc.contributor.authorEsslinger, Bernhard
dc.contributor.authorHermann, Eckehard
dc.contributor.authorKopal, Nils
dc.contributor.authorLampesberger, Harald
dc.contributor.editorAntal, Eugen
dc.contributor.editorMarák, Pavol
dc.date.accessioned2025-05-16T12:41:51Z
dc.date.available2025-05-16T12:41:51Z
dc.date.issued2025
dc.description.abstractIn the field of cryptography, identifying the type of cipher used in an encrypted message is crucial to effective cryptanalysis. Thus far, from a machine learning perspective, this classification problem has been tackled using specifically designed models, such as the Neural Cipher Identifier (NCID), which require data generation and model training capabilities. The recent advent of Large Language Models (LLMs) raises the following question: Can this classification problem be approached more effectively through prompt engineering? This paper explores various generic strategies for prompt engineering, such as chain-of-thought and in-context learning, by evaluating thousands of generated prompts for classical ciphers using open-source LLMs (on an Nvidia DGX system) and ChatGPT (via a browser interface and API). The classification accuracies achieved through these prompting techniques are compared with those obtained by NCID. Although our findings indicate that NCID still significantly outperforms the use of LLMs for cipher-type detection, the latter offers a more accessible approach to cryptography tasks. Both methods can benefit from domain-specific knowledge in cryptanalysis, highlighting the importance of expert input in improving initial classifications and handling complex cipher types.en
dc.identifier.issn1736-6305
dc.identifier.urihttps://hdl.handle.net/10062/109739
dc.language.isoen
dc.publisherTartu University Library
dc.relation.ispartofseriesNEALT Proceedings Series 58
dc.rightsAttribution-NonCommercial-NoDerivatives 4.0 International
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/
dc.subjectLLM
dc.subjectprompt engineering
dc.subjectcustom model
dc.subjectcryptanalysis
dc.subjectcipher type detection
dc.titleEnhancing Classical Cipher Type Detection: Prompt Engineering with Common LLMs versus Usage of Custom AI Models
dc.typeArticle

Failid

Originaal pakett

Nüüd näidatakse 1 - 1 1
Laen...
Pisipilt
Nimi:
1.pdf
Suurus:
269.6 KB
Formaat:
Adobe Portable Document Format