Two days ago, I saw someone asking about static web page encryption, so I wrote this code
idea :
When encrypting: first encrypt the user's key A with md5 to B, then use B to XOR the source file S0 to get the target file S1, and save S1 into js variables.
When decrypting : Ask for the key, and then operate the same as encryption.
Because md5 is used, I personally think it cannot be cracked without a key (except for violence)
Let’s try it out haha:
The source code is as follows:
Save this source code into a file in HTML format. Double-click to run it to see the effect.