Analysis of the Effect of Padding Schemes on Entropy, Bit Distribution, Hash Collisions, and Processing Time in Merkle-Damgård

Main Article Content

Valois Vicenti Sirait
Mia Elisabet Malau
Jeni Percani Sinaga
Dian Pratama Gulo
Berkat Damai Halawa

Abstract

Data security in cryptographic systems is highly dependent on the strength of the hashing algorithm. One of the most commonly used hashing structures is Merkle-Damgård, which converts the compression function into a fixed-size hashing function. The padding technique in this structure plays an important role in determining the bit distribution, entropy, and the probability of collision in the hash results. This study aims to analyze and compare three padding methods, namely 1 & 0 bit padding, repeating pattern padding (0xAA), and 1 bit padding (0xFF), based on bit distribution parameters, Shannon entropy, hash collision, and processing time. The results show that 1 bit padding (0xFF) has the highest Shannon entropy value (0.9940), indicating a better level of randomness compared to other methods. In terms of bit distribution, this padding also produces better balance than other paddings. However, the hash collision rate (74.90%) is still relatively high, indicating that the padding method alone is not enough to significantly reduce the probability of collision. In terms of time efficiency, padding bits 1 & 0 have the fastest execution time (0.000132 seconds), while padding bit 1 (0xFF) has the longest processing time (0.000177 seconds). With these results, it can be concluded that the padding method affects the hash characteristics, but does not significantly reduce the collision probability. Therefore, further optimization is needed to improve the security of Merkle-Damgård-based hashing.

Article Details

How to Cite
Valois Vicenti Sirait, Mia Elisabet Malau, Jeni Percani Sinaga, Dian Pratama Gulo, & Berkat Damai Halawa. (2023). Analysis of the Effect of Padding Schemes on Entropy, Bit Distribution, Hash Collisions, and Processing Time in Merkle-Damgård. Journal Majelis Paspama, 1(02), 28–39. Retrieved from https://paspama.org/index.php/majelis/article/view/162
Section
Articles

References

Anwar, M. R., Apriani, D., & Adianita, I. R. (2021). Hash Algorithm In Verification Of Certificate Data Integrity And Security. APTISI Transactions on Technopreneurship, 3(2), 67–74. https://doi.org/10.34306/att.v3i2.212

Ariesanda, B. (n.d.). Analisis dan Pengembangan Merkle-Damgård Structure.

Coron, J.-S., Dodis, Y., Malinaud, C., & Puniya, P. (n.d.). Merkle-Damgård Revisited : how to Construct a Hash Function.

Ghanimi, H. M. A., Melgarejo-Bolivar, R. P., Tumi-Figueroa, A., Ray, S., Dadheech, P., & Sengan, S. (2024). Merkle-Damgård hash functions and blockchains: Securing electronic health records. Journal of Discrete Mathematical Sciences and Cryptography, 27(2), 237–248. https://doi.org/10.47974/JDMSC-1878

Harsa Kridalaksana, A., & Arifin, Z. (2016). 8. SaKTI Henry_KRIPTOGRAFI AES MODE CBC PADA CITRA DIGITAL BERBASIS ANDROID. In Prosiding Seminar Ilmu Komputer dan Teknologi Informasi (Vol. 1, Issue 1).

Maysanjaya, I. M. D., & Dermawan, K. T. (2024). MANAJEMEN BASIS DATA (Teori dan Implementasi) (I). PT. Sonpedia Publishing Indonesia.

Nandi, M. (n.d.). Characterizing Padding Rules of MD Hash Functions Preserving Collision Security.

Sitorus, N., Sharon, J., Sinaga, G., Samosir, S. L., Terapan, S., Rekayasa, T., Lunak, P., & Del, I. T. (2024). Analisis Kinerja Algoritma Hash pada Keamanan Data: Perbandingan Antara SHA-256, SHA-3, dan Blake2. Jurnal Quancom, 2(2).

Supriyatna, A. (n.d.). Analisis Bibliometrik Shannon Entropy: Tren Penelitian dan Relevansi Multidimensional. In Jurnal Infortech (Vol. 6, Issue 2). http://ejournal.bsi.ac.id/ejurnal/index.php/infortech

Thampi, S. M., Gelenbe, E., Atiquzzaman, M., Chaudhary, V., & Li Editors, K.-C. (n.d.). Lecture Notes in Electrical Engineering 735 (Vol. 1). http://www.springer.com/series/7818

Tiwari, H. (2017). Merkle-Damgård Construction Method and Alternatives: A Review. In Survey Paper JIOS (Vol. 41, Issue 2).

Waluyo, T. (2023). Manajemen Agrobisnis di Era Society 5.0 (K. Retnawati, Ed.; I). CV. Mega Press Nusantar.