As the project needs to encrypt a js variable value on the client and then send it to the server for verification, I checked the md5 encryption method in js, js itself does not have a solution to directly complete an md5 function as in php. However, it is feasible to manually test the md5 encryption method on the Internet, send out a memo and share it with you.
Md5 encryption method file: md5.20.cript.rar
The usage is as follows:
The following code is called where you need to use MD5 encryption: