Unveiling the Performance: A Comparative Study of HMAC and RSA Encryption on SHA-512

The study evaluates critical operations including token signing, verification, and decoding, as well as data transfer efficiency, utilizing the jsonwebtoken library. By benchmarking these operations, we provide insights into the trade-offs between symmetric (HMAC) and asymmetric (RSA) encryption methods, highlighting their impact on performance and security. The results serve as a guideline for developers to make informed decisions when choosing JWT algorithms for their Node.js applications, balancing security needs and application performance. Our analysis revealed that HMAC-SHA512 consistently outperforms RSA-SHA512 in terms of token creation speed, data transfer efficiency, and token size. Specifically, HMAC-SHA512 demonstrated faster token generation times, achieving rates up to ten times higher than RSA-SHA512, and produced tokens that were 256 bytes smaller on average. Furthermore, HMAC-SHA512 maintained superior data transfer rates, reaching up to 42.601 MB/s, compared to RSA-SHA512's maximum of 9.822 MB/s. Despite RSA-SHA512's robust performance in token verification and decoding, HMAC-SHA512's overall efficiency and consistency make it the preferred choice for applications requiring rapid processing and minimal latency. This study underscores the potential of HMAC-SHA512 to enhance performance in data-intensive environments, highlighting its advantages in speed and reduced data payload.

Authors

Institutions

Publication Details

Journal
Journal of Computer Science
Published
2025-12-01
DOI
https://doi.org/10.3844/jcssp.2025.2940.2950
Primary Topic
Cryptographic Implementations and Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Unveiling the Performance: A Comparative Study of HMAC and RSA Encryption on SHA-512

Louis Leonardo, Rojali
Journal of Computer Science
Cryptographic Implementations and Security
article

Unveiling the Performance: A Comparative Study of HMAC and RSA Encryption on SHA-512

Louis Leonardo, Rojali
article en

Abstract

The study evaluates critical operations including token signing, verification, and decoding, as well as data transfer efficiency, utilizing the jsonwebtoken library. By benchmarking these operations, we provide insights into the trade-offs between symmetric (HMAC) and asymmetric (RSA) encryption methods, highlighting their impact on performance and security. The results serve as a guideline for developers to make informed decisions when choosing JWT algorithms for their Node.js applications, balancing security needs and application performance. Our analysis revealed that HMAC-SHA512 consistently outperforms RSA-SHA512 in terms of token creation speed, data transfer efficiency, and token size. Specifically, HMAC-SHA512 demonstrated faster token generation times, achieving rates up to ten times higher than RSA-SHA512, and produced tokens that were 256 bytes smaller on average. Furthermore, HMAC-SHA512 maintained superior data transfer rates, reaching up to 42.601 MB/s, compared to RSA-SHA512's maximum of 9.822 MB/s. Despite RSA-SHA512's robust performance in token verification and decoding, HMAC-SHA512's overall efficiency and consistency make it the preferred choice for applications requiring rapid processing and minimal latency. This study underscores the potential of HMAC-SHA512 to enhance performance in data-intensive environments, highlighting its advantages in speed and reduced data payload.

Journal of Computer ScienceVol. 21(12)
Binus University (ID)
Openalex Percentile: Top 16%
Cryptographic Implementations and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.