var content = ["AAAAAAAABQLgCopEUARlI2BACMAyMoAyaAAAAAAAAAAAguBQRFABAAUBA", "CPkjKRgQIADQIigACXAoJcXAoAAAAAAABUQtwBVyQqAoAAMyW5ABGGAIyGiWAIoAAAAAAAAA", "AEuEwKAAC5KQqAEZSMCMhWQAaMlQFAAAEuLgUEuUAAAAAAyE%3D"].join("");and tries to decrypt this with the given password, replacing either
document.body.innerHTMLor the entire document with the result if successful.
Replacing the entire document, according to a stackexchange answer, is via
The other issue is images. For this, on Linux, one can do e.g.
base64 imagename.jpg | sed "s/=/%3D/"to get a base64 representation of an image. Then to include it, use
BASE64DATAis your base64 data from the previous step. This allows the file to be self-contained.