Indonesian Journal of Enterprise Architecture
Vol. 3 No. 3 (2026): Indonesian Journal of Enterprise Architecture

Hybrid RSA-AES Message Encryption in a Progressive Web App (PWA) Chat Application

Nurdin (Universitas Dipa Makassar, Indonesia)
ST Aminah Dinayati Ghani (Universitas Dipa Makassar, Indonesia)
Nur Salman (Universitas Dipa Makassar, Indonesia)
Suryani (Universitas Dipa Makassar, Indonesia)
Michael Oktavianus (Universitas Dipa Makassar, Indonesia)



Article Info

Publish Date
01 Oct 2026

Abstract

Chat applications are a dominant communication medium, yet message confidentiality remains a concern because messages rest on infrastructure users do not control. Hybrid RSA-AES encryption is a well-established response, but its behaviour inside a Progressive Web App (PWA) remains under-examined: service-worker caching, offline operation, and origin-bound client storage create key-management and trust-boundary constraints that differ from native or server-rendered clients. The RSA-AES combination is not claimed as novel; the contribution is its implementation and evaluation within a PWA architecture, with the trust boundary stated explicitly. SecureChat, a PWA chat application, was built with PHP for server-side cryptography, native JavaScript and responsive CSS on the client, and MySQL for storage. Each user receives an RSA key pair at registration, with the private key held server-side under AES-256 protection. Every message is encrypted under a fresh AES-256 session key in CBC mode with PKCS7 padding and a random 128-bit initialisation vector; the session key is wrapped with the recipient public key, and an HMAC-SHA256 tag covers the ciphertext and IV. The prototype uses PKCS#1 v1.5 padding; RSA-OAEP is recommended for production rather than implemented. Evaluation combined functional testing, arithmetic verification of the modular-exponentiation routine on a reduced-parameter instance, and timing of the AES, RSA key-wrapping, and HMAC stages for messages of 10 to 500 characters over 30 runs per configuration. Total encryption time was 1.262 ± 0.046 ms at 10 characters and 1.279 ± 0.041 ms at 500 characters; RSA key wrapping accounted for about 98 per cent of that cost and was length-independent, while the AES stage rose only from 0.012 to 0.030 ms. Encryption cost is therefore governed by one fixed-size asymmetric operation rather than by message size, making hybrid RSA-AES computationally feasible within a PWA, although server-side key custody prevents the design from qualifying as end-to-end encryption.

Copyrights © 2026






Journal Info

Abbrev

IJEA

Publisher

Subject

Economics, Econometrics & Finance Social Sciences

Description

Business Strategic and Operations Management Digital Marketing and Consumer Studies Entrepreneurship and Management of Innovation Management of Technology and Innovation Data Analysis For Business Artificial Intelligence in Business Technology Adoption in ...