Implementation of the Rail Fence Cipher Algorithm Using Python for Text-Based Encryption and Decryption

Shinta Rachma Yulianti, Asca Naufal Atana Sadida

Abstract


In the digital era, the demand for secure data transmission is growing rapidly due to the widespread use of online communication platform. Cryptographic techniques offer fundamental protection by transforming readable data into unreadable formats and vice versa. One classical encryption method, the Rail Fence Cipher, uses a transposition technique to rearrange characters based on a zigzag pattern. This research aims to implement and evaluate the Rail Fence Cipher using the Python programming language. The implementation is executed via a command-line interface, providing users with interactive options for encryption and decryption. Results show that the algorithm effectively transforms plaintext into ciphertext and restores it accurately, validating its educational value. Despite its simplicity and speed, the Rail Fence Cipher's limited resistance to cryptanalysis makes it more suitable for academic learning than secure communication. This study confirms the practicality of classical ciphers for educational purposes and proposes future improvements through GUI enhancement and hybrid encryption techniques. The findings support the use of classical ciphers as foundational teaching tools in the field of cryptography education.

Full Text:

PDF

References


D. Ramalinda, J. and A. Raharja, "Data Protection Strategy Using Cryptographic Systems in Information Security," Journal International Multidisciplinary Research, pp. 571-665, 2024.

B. Yakti, R. Prayitno and Fauziah, "Transposition Cipher Using Mapping Index as Key," Jurnal Ilmiah Komputasi, pp. 263-272, 2023.

N. Syahfiar and E. Ardhianto, "Data Securiity Enhancement with Super Encryption of Rail Fence and Vinegere Autokey," Jurnal Ilmiah Komputasi, pp. 293-300, 2024.

D. Purnamasari and H. Prasetyani, "Performance Analysis of Cryptography Based on Caesaer and Rail Fence Cipher on Tembang Macapat," Journal of International Education, pp. 1-8, 2022.

K. Fatimah and M. Huda, "Comparative Study on Classical Cipher Algorithms Using Python Implementation," International Journal of Computer Trends and Technology (IJCTT), pp. 12-16, 2021.

S. Sharma and P. Verma, "Security Analysis of Classical and Modern Cryptography Techniques," Journal of Cyber Security Technology, pp. 181-196, 2020.

A. Wijaya, "Implementasi Algoritma Kriptografi Klasik Rail Fence," Jurnal Teknologi dan Sistem Komputer, pp. 45-51, 2023.

R. Hasan, "The Use of Python in Classicall Cryptography Algorithms," International Journal of Software Engineering and Knowledge Engineering, pp. 223-230, 2022.

M. Zulfikar, "Pengaruh Kombinasi Cipher Klasik dalam Pengamanan Data," Jurnal Informatika dan Komputer, pp. 88-95, 2021.

L. Santoso, "Penerrapan Enkripsi Transposisi Untuk Data Teks," Jurnal Teknologi Informasi, pp. 101-110, 2020.

F. Hartono, "Analisis Rail dan Caesar dalam Pengamanan Pesan," Jurnal Sistem dan Teknologi Informasi, pp. 50-59, 2021.

S. Nugroho, "Review of Transposition Techniques in Cryptography," International Journal of Security and Its Application, pp. 11-20, 2020.

T. Rakhmat, "Metode Kriptografi Klasik untuk Edukasi," Jurnal Pendidikan Teknologi Informasi, pp. 22-29, 2021.

H. Lestari, "Studi Perbandingan Cipher Substitusi dan Transposisi," Jurnal Ilmu Komputer dan Aplikasi, pp. 71-80, 2022.

P. Dewi, "Aplikasi Python untuk Enkripsi Rail Fence," Jurnal Teknik Informatika, pp. 33-40, 2024.

D. Hakim, "Perancangan Sistem Enkripsi Sederhana," Jurnal Riset Komputer, pp. 15-23, 2023.

R. Sari, "Model Enkripsi Rail Fence dan Evaluasinya," Jurnal Keamanan Siber, pp. 100-107, 2021.

M. Hidayat, "Pemanfaatan Python untuk Pembelajaran Kriptografi," Jurnal Sains Komputer, pp. 60-66, 2022.

S. Amin, "Pengembangan Modul Kriptografi Klasik," Jurnal Pendidikan Komputer, pp. 10-17, 2024.

E. Anjani, "Analisis Efisiensi Rail Fence Cipher," Jurnal Teknologi Informasi dan Komputer, pp. 90-97, 2020.

D. Arifin, "Studi Implementasi Cipher Zigzag," Jurnal Sistem Informasi, pp. 55-61, 2022.

Y. Setiawan, "Penggunaan Cipher Transposisi dalam Aplikasi Dekstop," Jurnal Informatika, pp. 118-125, 2021.

K. Wijayanti, "Hybrid Cipher Method for Message Security," International Journal of Applied Criptography, pp. 201-208, 2023.

J. Harun, "Optimizing Classical Cipher for Low-end Devices," Journal of Embedded System, pp. 30-37, 2020.

F. Akbar, "Educational Use of Cryptography with Python," Journal of Digital Learning and Education, pp. 72-80, 2024.


Refbacks

  • There are currently no refbacks.


Flag Counter

 International Journal of Engineering Computing Advanced Research (IJECAR) (e-ISSN : xxxx-xxxxp-ISSN : xxxx-xxxx) is published by ARCES.

 

This journal is under licensed of Creative Commons Attribution 4.0 International License.

Visitor Stats