Proceedings of the 2025 3rd International Conference on Image, Algorithms, and Artificial Intelligence (ICIAAI 2025)

Balancing Security and Responsiveness in Web Authentication: A Bcrypt-Based Java Servlet Implementation with UX Enhancements

Authors
Jingyi Liu1, *
1Graduate School of Design, Harvard University, Cambridge, MA, 02138, USA
*Corresponding author. Email: jingyi_liu@gsd.harvard.edu
Corresponding Author
Jingyi Liu
Available Online 31 August 2025.
DOI
10.2991/978-94-6463-823-3_88How to use a DOI?
Keywords
Web Authentication System; User Experience; Security
Abstract

This paper presents a secure web authentication system that balances stringent security measures with a responsive user experience. The proposed system is built using Java Servlet, MySQL, and the Bcrypt encryption algorithm to protect user credentials while maintaining smooth interaction during login and registration processes. Although Bcrypt’s salted hashing and iterative design effectively defend against brute-force and rainbow table attacks, its computational intensity can introduce noticeable delays during password verification. To mitigate this issue, the system integrates real-time user feedback and context-sensitive error messages—designed under anti-rude principles—to maintain user trust and tolerance during authentication delays. The registration process ensures that user-provided information such as usernames, emails, and passwords are validated on the front end with JavaScript, while the backend further verifies inputs to prevent SQL injection and malicious entries. The login module uses session management to securely maintain user state and implements a lockout mechanism after repeated failed attempts to further enhance security. Experimental evaluations indicate that the system’s modular design and interactive feedback mechanisms significantly improve the overall user experience despite inherent delays introduced by secure password hashing.

Copyright
© 2025 The Author(s)
Open Access
Open Access This chapter is licensed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International License (http://creativecommons.org/licenses/by-nc/4.0/), which permits any noncommercial use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.

Download article (PDF)

Volume Title
Proceedings of the 2025 3rd International Conference on Image, Algorithms, and Artificial Intelligence (ICIAAI 2025)
Series
Advances in Computer Science Research
Publication Date
31 August 2025
ISBN
978-94-6463-823-3
ISSN
2352-538X
DOI
10.2991/978-94-6463-823-3_88How to use a DOI?
Copyright
© 2025 The Author(s)
Open Access
Open Access This chapter is licensed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International License (http://creativecommons.org/licenses/by-nc/4.0/), which permits any noncommercial use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.

Cite this article

TY  - CONF
AU  - Jingyi Liu
PY  - 2025
DA  - 2025/08/31
TI  - Balancing Security and Responsiveness in Web Authentication: A Bcrypt-Based Java Servlet Implementation with UX Enhancements
BT  - Proceedings of the 2025 3rd International Conference on Image, Algorithms, and Artificial Intelligence (ICIAAI 2025)
PB  - Atlantis Press
SP  - 889
EP  - 902
SN  - 2352-538X
UR  - https://doi.org/10.2991/978-94-6463-823-3_88
DO  - 10.2991/978-94-6463-823-3_88
ID  - Liu2025
ER  -