Journal of Technology and Computer (JOTECHCOM)
Vol. 2 No. 4 (2025): November 2025 - Journal of Technology and Computer

Implementation of Message Encryption Using the Digraph Affine Cypher Algorithm with Python

Aditya, Andre (Unknown)



Article Info

Publish Date
26 Nov 2025

Abstract

The security of digital messages is a critical concern, necessitating robust encryption methods. While the classical Affine Cipher offers a foundational approach, its security can be enhanced. This study addresses a gap in the practical application of the Digraph Affine Cipher (DAC), a modification that encrypts character pairs (digraphs) to increase cryptographic complexity. We implemented the DAC algorithm using Python to encrypt and decrypt text files and evaluated its performance against standard Affine Cipher and ASCII-based variations. The system was tested on files ranging from 200 to 5000 characters, measuring processing time and final file size. Results showed that processing time is directly proportional to message length, with the standard ASCII Affine Cipher being the fastest and the classic DAC the slowest. Notably, the DAC produced an encrypted file size most consistent with the original plaintext, while ASCII-based versions demonstrated greater flexibility by successfully processing a wider range of symbols. The study successfully demonstrates a practical Python-based implementation of the DAC, providing a performance baseline and confirming its effectiveness in securing text data. This work serves as a foundation for developing stronger hybrid classical cryptographic techniques.

Copyrights © 2025






Journal Info

Abbrev

jotechcom

Publisher

Subject

Computer Science & IT

Description

The Journal of Technology and Computer (JOTECHCOM) brings together researchers, academics (faculty and students), and industry practitioners to develop the field, discuss new trends and opportunities, exchange ideas and practices, and promote cross-disciplinary and cross-domain collaboration. ...