Cryptanalysis of the Hellman-Merkle Cryptosystem via Hybrid Metaheuristics Approach
DOI:
https://doi.org/10.19139/soic-2310-5070-4360Keywords:
Optimization, Hybrid Algorithms, Firefly Algorithm, Genetic Algorithm, Particle Swarm Optimization, Cryptanalysis, Hellman-Merkle, Knapsack ProblemAbstract
One of the earliest public-key cryptosystems, the Hellman-Merkle cryptosystem (1978), is based on the subset-sum knapsack problem. This paper attacks it with metaheuristics, comparing ten methods: Genetic Algorithm (GA), Particle Swarm Optimization (PSO), Firefly Algorithm (FA), Whale Optimization Algorithm (WOA), Tabu Search, and five hybrids (GA-FA, GA-PSO, GA-WOA, a novel multi-leader WOA variant WOA-ML, and an FA-WOA-ML hybrid).Hybridizing GA with a swarm- or attraction-based mechanism consistently raises decryption success to 100% at n=10 bits, versus 97.6% for standalone GA; GA-PSO gives the best overall speed/reliability trade-off, while GA-FA explores the most candidates once search effort is measured uniformly across methods. A diagnostic analysis shows that standard (single-leader) WOA suffers an unbounded position blow-up that saturates its sigmoid discretization; replacing its single global-best attractor with a pool of K randomly-sampled leaders (WOA-ML) substantially improves robustness without incurring FA's quadratic cost. Under a time-matched budget at a larger key size (n=32), where GA-FA's O(P2) cost becomes prohibitive, WOA-ML's cheaper O(P) update reaches non-trivial success while every O(P2) method fails outright -- an explicit crossover between per-generation cost and search quality. At the smaller key sizes used for most of this study (n £ 20), however, GA-FA remains the most reliable method; Tabu Search, included as a population-free baseline, is the cheapest per iteration but the second-least robust, briefly rivaling WOA-ML at very small n=32 budgets before being overtaken. Finally, attempts at n=64 and n=128 confirm that none of the ten methods is a practical attack at cryptographically realistic scale.This paper further evaluates the theoretical justification, generalization to multi-character messages, scalability, parameter sensitivity, and computational complexity of all ten methods.Downloads
Published
2026-09-26
How to Cite
Hafsi, N., Slimani, Y., & Benterki, D. (2026). Cryptanalysis of the Hellman-Merkle Cryptosystem via Hybrid Metaheuristics Approach. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-4360
License
Copyright (c) 2026 Narimen Hafsi, Hanaa Hachimi, Djamel Benterki, Yacine Slimani

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).