function setHashValue(s){ var digest = document.getElementById("data").value; document.getElementById("hash").value = SHA256(s); }