Optimization of Hill Cipher Method for Encryption and Decryption of Prescription Drugs at Puskesmas Twano Jayapura City

Elvis Pawan, Patmawati Hasan


A drug prescription is a written request from a doctor to a pharmacist that must be kept secret because it contains certain doses of drugs and types of drugs that cannot be known by just anyone, especially those who are not interested. From time to time technological advances have a rapid impact on all sectors, both private and government agencies, including the health sector. One form of service in the health sector that can utilize information technology is the manufacture of electronic drug prescriptions that can be sent via an application from a doctor to a pharmacist. The frequent misuse of prescription drugs by unauthorized persons, as well as errors by officers at the pharmacy in reading prescriptions can be fatal for the community, so a solution is needed to overcome this problem. This application is designed using the Hill Cipher Algorithm which is one of the classic types of algorithms in the field of cryptography, but to get the maximum level of security, the algorithm key will be modified using a postal code pattern as a matrix key. Broadly speaking, the Encryption Stage is the first starting from the plaintext which is the type of drug and drug dose, the second key matrix using a POS code pattern, the three plaintexts are converted into blocks, the fourth is arranged into a 2x2 matrix, the fifth is multiplied between the key and the sixth plaintext is multiplied into mod 26 to generate an encrypted ciphertext or recipe. The success rate of system functionality testing using the blackbox method is 100%

Full Text:



Y. Yusuf, “Kualifikasi Tindak Pidana Atas Kesalahan Pe,Bacaan Resep Dokter Oleh Apoteker Yang Menimbulkan Kerugian Pada Pasien,” Simp. Huk. Indones., vol. 1, no. 8, pp. 1–13, 2019.

Rahmatini, “Agar Penulisan Resep Tetap Up To Date,” Maj. Kedokt. Andalas, vol. 33, no. 2, pp. 101–108, 2015.

F. C. Sabila, R. Z. Oktarlina, and N. Utami, “Peresepan Elektronik ( E-Prescribing ) Dalam Menurunkan Kesalahan Penulisan Resep,” Med. J. Lampung Univ., vol. 7, no. 3, pp. 271–275, 2018.

W. S. Margareta and D. Iwan, “Peran Resep Elektronik dalam meningkatkan Medication Safety pada proses peresepan,” J. Manaj. Pelayanan Kesehat., vol. 17, no. 1, pp. 30–36, 2014.

J. R. Paragas, A. M. Sison, and R. P. Medina, “An Improved Hill Cipher Algorithm using CBC and Hexadecimal S-Box,” in 2019 IEEE Eurasia Conference on IoT, Communication and Engineering (ECICE), 2019, pp. 77–81

Eddy and M. R. Pahlevi, “PEMBELAJARAN ENKRIPSI METODE WORD AUTO KEY ENCRYPTION,” Sisfotenika, vol. 4, no. 1, pp. 23–32, 2014

S. Hraoui, F. Gmira, M. F. Abbou, A. J. Oulidi, and A. Jarjar, “A New Cryptosystem of Color Image Using a Dynamic-Chaos Hill Cipher Algorithm,” Procedia Comput. Sci., vol. 148, pp. 399–408, 2019.

N. Nasron, S. Suroso, and C. Buana, “Rancang Bangun Pengaman Rumah dan Kontrol Pada Kunci Pintu dengan Metode Kriptogafi Hill Cipher Berbasis IoT,” PRotek J. Ilm. Tek. Elektro, vol. 7, no. 2, pp. 104–109, 2020.

D. M. Sholahudin and Asmunin, “Implementasi Algoritma Hill Cipher untuk Proses Enkripsi dan Dekripsi Citra Berwarna dengan Modifikasi Padding,” J. Informatics Comput. Sci., vol. 01, no. 04, pp. 228–234, 2020.

J. Freddy et al., “Kriptografi Teks dan Citra dengan Menggunakan Algoritma Hill Cipher pada Perangkat Android,” J. Masy. Inform., vol. 8, no. 1, pp. 9–15, 2017.


  • There are currently no refbacks.