Research on Front-End JavaScript Code Protection Method Based on Go Language and WebAssembly
In web development, the security of front-end JavaScript code has always been a crucial issue. Traditional encryption methods are primarily performed on the server side, increasing server load and making it challenging to counter increasingly sophisticated cyber-attacks. This paper explores a novel front-end code protection method by implementing the RC4 algorithm in Go language and combining it with WebAssembly technology. Firstly, the basic principles of the Go language and RC4 algorithm are introduced. Subsequently, the process of compiling Go code into WebAssembly modules is detailed. Finally, the utilization of these technologies to protect front-end JavaScript code is discussed. Experimental results show that using WebAssembly modules not only enhances the security of front-end code and reduces server load but also significantly improves the overall performance of web applications. This research demonstrates a feasible front-end code protection solution and provides a foundation for further study.
Authors
- Jun S. Liu (ORCID: https://orcid.org/0000-0002-4450-7239)
- Mingjie Guan
- Xin Wang (ORCID: https://orcid.org/0000-0002-0641-3186)
- Jun Yan (ORCID: https://orcid.org/0000-0003-2099-7162)
Institutions
- Shanghai Changzheng Hospital (CN)
- Chinese Academy of Civil Aviation Science and Technology (CN)
Publication Details
- Published
- 2024-10-23
- DOI
- https://doi.org/10.1109/iccasit62299.2024.10828029
- Primary Topic
- Digital Rights Management and Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00