Paper Title
Evaluating RSA PKCS#1 V1.5 Performance in Webassembly and Javascript: Insights Into Cryptographic Efficiency
Abstract
This paper presents a performance comparison of RSA PKCS#1 v1.5 encryption and decryption implemented in WebAssembly (Wasm) and JavaScript. With the increasing reliance on cryptographic algorithms in secure communications, understanding the trade-offs between these technologies is crucial. While RSA is commonly used for digital signature generation and verification in web applications, this study focuses on encryption and decryption to evaluate their performance characteristics in scenarios requiring secure data transmission.The study evaluates metrics such as encryption time, decryption time, and consistency across scenarios involving single operations, iterative workloads, and large data handling. Results indicate that Wasm consistently outperforms JavaScript in raw computational tasks, particularly in decryption and large data scenarios, due to its precompiled nature and low memory overhead. However, JavaScript leverages Just-In-Time (JIT) optimizations to achieve competitive encryption times during iterative tasks. Related studies highlight Wasm's broader efficiency in computation-intensive tasks. These findings confirm Wasm’s suitability for cryptographic operations and provide a foundation for future exploration of its applications in security tools like antivirus solutions and real-time threat analysis with also having applications in which energy efficiency is needed.
Keywords - WebAssembly (Wasm), JavaScript, RSA PKCS#1 v1.5, Cryptography, Encryption, Decryption, Performance Comparison, Cybersecurity, Real-time Threat Analysis, Cross-platform Security