Empowering Robust Security Measures in Node.js-Based REST APIs by JWT Tokens and Password Hashing: Safeguarding Cyber World

Authors

  • Khalid Hamid* Department of Computer Science and Information Technology, Superior University Lahore, Lahore, 54000, Pakistan Author
  • Muhammad Danish Department of Computer Science, University of New Mexico, NM Author
  • Ayyan Asif Master of Science in Data Analytics (Stem) Department of Computer Science New Mexico State University, Las Cruces, NM Author
  • Younus Khan Department of Computer and Mathematical Sciences New Mexico Highlands University, Las Vegas, NM Author
  • Muhammad Danish Department of Computer Science and Information Technology, Superior University Lahore, Lahore, 54000, Pakistan Author
  • Muhammad Waseem Iqbal Department of Software Engineering, Superior University Lahore, 54000, Pakistan Author
  • Umair Ali Department of Computer Science and Information Technology, Superior University Lahore, 54000, Pakistan Author
  • Muhammad Ibrar Department of Computer and Mathematical Sciences New Mexico Highlands University, Las Vegas, NM Author

DOI:

https://doi.org/10.63075/w2nam443

Abstract

This research analyzes the practical implementation of the security measures on the node. js-based REST APIs. This research paper studies authorization and authentication with the use of role-based access control, JWT tokens and password hashing. It also addresses the common vulnerabilities to the APIs like SQL Injection, Cross-site scripting attacks with the help of the parameterized queries and some of the input validations. The testing was conducted by the postman which demonstrates the good results that reduce the vulnerabilities of the SQL injection attacks and cross-site scripting attacks. This research paper also looks at the trade-offs between performance and security. The findings result in the best security measure to make REST APIs secure.

Downloads

Download data is not yet available.

Published

2025-05-16

Issue

Section

Computer Science

How to Cite

Empowering Robust Security Measures in Node.js-Based REST APIs by JWT Tokens and Password Hashing: Safeguarding Cyber World. (2025). Annual Methodological Archive Research Review, 3(5). https://doi.org/10.63075/w2nam443

Most read articles by the same author(s)