Analisis Perbandingan Algoritma SHA-256 dan Keccak-256 dalam Smart Contract EVM

Authors

  • Ida Bagus Rizky Brahmantya Universitas Udayana Author
  • Gst. Ayu Vida Mastrika Giri Universitas Udayana Author

DOI:

https://doi.org/10.24843/JNATIA.2026.v04.i03.p04

Keywords:

Blockchain, Smart Contract, SHA-256, Keccak-256, Hash Algorithm

Abstract

The advancement of blockchain technology has increased the demand for efficient and secure hash algorithms, particularly in the development of smart contracts. This study uses smart contracts on the Ethereum network with inputs of 32, 128, and 1024 characters to evaluate SHA-256 and Keccak-256 based on execution cost, gas fees, and security. According to the results, Keccak-256 is more effective for smart contract computations because it consistently has lower execution costs for all input sizes. Both algorithms perform similarly for big inputs (1024 characters), suggesting comparable storage efficiency at scale, even if its gas charge is marginally greater than SHA-256 for tiny inputs (32 and 128 characters). Keccak-256 and SHA-256 both have strong defenses against brute-force assaults. Both provide similar security, while Keccak-256 takes a little longer to calculate. All things considered, Keccak-256 offers better efficiency, which qualifies it for widespread smart contract implementation. Further research is recommended to explore performance in more complex blockchain environments and execution gas and to optimize gas  for practical implementation.

Downloads

Published

2026-05-01

How to Cite

[1]
Ida Bagus Rizky Brahmantya and Gst. Ayu Vida Mastrika Giri, “Analisis Perbandingan Algoritma SHA-256 dan Keccak-256 dalam Smart Contract EVM”, Jnatia, vol. 4, no. 3, pp. 481–490, May 2026, doi: 10.24843/JNATIA.2026.v04.i03.p04.

Most read articles by the same author(s)

1 2 > >> 

Similar Articles

11-20 of 109

You may also start an advanced similarity search for this article.