PERBANDINGAN ALGORITMA HASH FUNCTION MD5, SHA-1 DAN SHA-256 DALAM MENJAGA INTEGRITAS DATA PADA SISTEM FILE GAMBAR
Abstract
Cryptography plays a crucial role in maintaining the integrity of digital data, particularly image files that are susceptible to alteration or mani pulation. This study aims to compare the MD5, SHA-1, and SHA-256 hash algorithms in detecting changes in 30 e-KTM image files in JPG format. Each file was processed using all three algorithms and then tested by altering a single pixel and compressing the file. The parameters analyzed included changes in hash values, hashing processing time, and algorithm sensitivity based on the avalanche effect. The results of the study indicate that all three algorithms were able to detect all changes in the image files. MD5 has the fastest processing time, SHA-1 provides a higher level of security than MD5, while SHA-256 produces the highest avalanche effect and offers the best security level despite requiring a longer processing time. Thus, SHA-256 is the most effective algorithm for maintaining the integrity of image files.

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Each article is copyrighted © by its author(s) and licensed under CC BY-NC-ND License.