pycastx: A Python library for lightweight data encryption in IoT using ECC and metaheuristics based high-entropy keys and dynamic S-Box
The fast-growing number of Internet of Things (IoT) products in our daily lives is making smart objects more important for us to achieve our goals easily. The Internet of Things (IoT) has a wide range of applications that will have a significant impact on several different industries. Security has b...
Saved in:
| Main Authors: | , , , , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
Elsevier
2025-09-01
|
| Series: | SoftwareX |
| Subjects: | |
| Online Access: | http://www.sciencedirect.com/science/article/pii/S2352711025002870 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| Summary: | The fast-growing number of Internet of Things (IoT) products in our daily lives is making smart objects more important for us to achieve our goals easily. The Internet of Things (IoT) has a wide range of applications that will have a significant impact on several different industries. Security has become a primary concern as the Internet of Things increases in its vulnerabilities and threats, and the growing demand for secure communication protocols requires robust and efficient cryptographic solutions. We present pycastx, an open-source Python library that simplifies hands-on work in elliptic curve cryptography and dynamic AES S-Box design. pycastx bundles two lean modules, the ECC toolkit and a genetic algorithm S-Box generator, into a single, lightweight package that demands almost no external dependencies. Within the ECC toolkit, users can build curves over prime fields, carry out fast point addition, doubling, and scalar multiplication, generate high-entropy private keys using cryptographically secure random bits, and measure key randomness using Shannon entropy. The S-Box generator employs a flexible genetic algorithm that iteratively generates substitution boxes with peak non-linearity and strong avalanche properties, relying on population initialization, one-point crossover, swap mutations, and damage-repair heuristics. The proposed library and encryption scheme are suitable for IoT applications where efficiency and security are critical. This work narrows the gap between theoretical cryptography and its practical implementation, providing a comprehensive solution for secure data transmission in modern communication systems. |
|---|---|
| ISSN: | 2352-7110 |