Using Machine Learning to Optimize Key-Length Prediction for Polyalphabetically Encrypted Text
ISEF · 2018 Systems Software
Overview
With the continuous rise of machine learning technology, today’s cybersecurity algorithms are faced with a new challenge; their vulnerabilities are ever-furthered by continually more advanced decryption programs that utilize machine learning. This project seeks to examine the efficiency of algorithms that employ machine learning on predicting the key length used to encrypt text via the Vigenere cipher, a method of text encryption which, due to its polyalphabetic nature, serves as the basis for more complex security algorithms used today. The Kasiki method is a generally unreliable means of determining key-length for the Vigenere cipher. It makes use of character combination frequency in language, and it is so far the only conceived method. This experiment examines the accuracy to which the Kasiki method and machine learning can individually and jointly predict key-length. The Kasiki method alone yielded an accuracy rate of 55%, but because it utilizes an implicit greatest-common-divisor algorithm, the Kasiki method often inaccurately predicted key-lengths outside of the valid range that were exact multiples of their respective true values. Using this information to train a linear regression machine learning model yielded a 75% accuracy rate in predicting key length. Full decryption of Vigenere-encrypted text is greatly facilitated upon extracting key length, and the significance of this accuracy rate exposes the vulnerability pertaining to the Vigenere cipher and consequently that of today’s cybersecurity algorithms, but prediction accuracy could potentially be further optimized in a future investigation through the use of feature selection within a machine learning model.
Awards (2)
- Drexel University: Full tuition scholarship $250,000 $250,000
- National Security Agency Research Directorate : Honorable Mention "Science of Security"
Competition history
- ISEF 2018
Resources
Related projects
ISEF · 2019
The Encryption and Decryption of Messages with an Intelligent Chatbot through the Usage of Polygraphs
ISEF · 2021
Breaking the Substitution Cipher: Coding an Automatic Cipher Solver
ISEF · 2024
Improving the Ransomware Detection/Mitigation Proof-of-Concept With Machine Learning
ISEF · 2025
Impact of Encryption Strength on Password Cracking Time
Closest projects by meaning, across every fair and year in the corpus.
Source: Regeneron International Science and Engineering Fair