text }}';

if (sessionStorage.getItem("password")) {
  var passphrase = sessionStorage.getItem("password");
  var plainHTML = CryptoJS.AES.decrypt(encryptedMsg, passphrase).toString(CryptoJS.enc.Utf8);
  document.write(plainHTML);
  document.close();
} else {
  var plainHTML = CryptoJS.enc.Base64.parse(form).toString(CryptoJS.enc.Utf8);
  document.write(plainHTML);
  document.close();
}

document.getElementById('staticrypt-form').addEventListener('submit', function(e) {
  e.preventDefault();

  var passphra